【问题标题】:Tweepy search not yielding same results as twitter.com searchTweepy 搜索不会产生与 twitter.com 搜索相同的结果
【发布时间】:2017-11-13 06:35:19
【问题描述】:

以 Tweepy 搜索为例:

for match in tweepy.Cursor(api.search, q=('from:realdonaldtrump michaelcohen212'), include_entities=True, count=10, wait_on_rate_limit=True).items():
    print(match.text)

没有结果,但是当我在这里搜索时,我得到了结果(尽管它们来自 2015 年):

https://twitter.com/search?f=tweets&q=from%3Arealdonaldtrump%20michaelcohen212&src=typd

我尝试使用 Tweepy 搜索运算符(如 sinceuntil)针对特定范围进行过滤,但仍然没有产生任何结果

有什么想法吗?

【问题讨论】:

    标签: twitter tweepy


    【解决方案1】:

    这是因为 Search API 的限制。

    “Twitter 搜索 API 根据过去 7 天内发布的近期推文样本进行搜索。”

    https://developer.twitter.com/en/docs/tweets/search/overview/basic-search

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-02-21
      • 1970-01-01
      • 2020-05-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-06
      • 1970-01-01
      相关资源
      最近更新 更多