来自用户的推特 API 高级搜索推文

Twitter API advanced search tweets from user

本文关键字:高级 搜索 API 用户      更新时间:2023-09-26
Twitter

API 是否有搜索工具可以从 Twitter 历史用户时间线中查找特定字符串,而无需加载所有 3200 条推文并使用针式大海捞针方法搜索它?

我从文档中读到,搜索推特 API 只能追溯到 7 天,这还不够。

Twitter在其网站上的高级搜索范围要广泛得多:

通过在Twitter上搜索"Clinton from:realdonaldtrump",它显示了几年来来自用户realdonaldtrump的字符串"clinton"的推文。

https://twitter.com/search?q=clinton%20from%3Arealdonaldtrump&src=typd&lang=en

Twitter API 没有类似的功能吗?

不,基本 API 不允许您在用户时间线或搜索中返回那么远。完整的存档可作为Twitter的Gnip API之一提供。