简体   繁体   English

使用 tweepy 搜索 api 无法获得超过 600 条推文

[英]Cant get more than 600 tweets using tweepy search api

noofitem = 1000 tweets = tweepy.Cursor(api.search,q=['#iphone11, -filter:retweets'],since='2019-11-14',lang='en',tweet_mode='extended',retweeted=False).items(noofitem) i = [tweet.full_text for tweet in tweets] #Tweet text noofitem = 1000 条推文 = tweepy.Cursor(api.search,q=['#iphone11, -filter:retweets'],since='2019-11-14',lang='en',tweet_mode='extended',转推=False).items(noofitem) i = [tweet.full_text for tweets in tweets] #Tweet text

I am trying to get about 1000 tweets using tweepy.我正在尝试使用 tweepy 获得大约 1000 条推文。 But the max tweets I get are around 600. Changing the date does not work.但是我收到的最大推文约为 600 条。更改日期不起作用。 Any modification or other workarounds will be helpful.任何修改或其他解决方法都会有所帮助。 Thanks.谢谢。

Please note that Twitter's search service and, by extension, the Search API is not meant to be an exhaustive source of Tweets.请注意,Twitter 的搜索服务以及搜索 API 并不是推文的详尽来源。 Not all Tweets will be indexed or made available via the search interface.并非所有推文都会被索引或通过搜索界面提供。

Please refeer to this link for more information: http://docs.tweepy.org/en/latest/api.html#help-methods请参考此链接了解更多信息: http://docs.tweepy.org/en/latest/api.html#help-methods

Probably you will need to set up a Stream to get the ammount of data you need.可能您需要设置 Stream 以获得所需的数据量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM