【问题标题】:Cant get more than 600 tweets using tweepy search api使用 tweepy search api 无法获得超过 600 条推文
【发布时间】:2020-03-15 16:48:35
【问题描述】:

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 tweets in tweets] #推文文本

我正在尝试使用 tweepy 获得大约 1000 条推文。但是我收到的最大推文约为 600 条。更改日期不起作用。任何修改或其他解决方法都会有所帮助。谢谢。

【问题讨论】:

    标签: python twitter data-science tweepy


    【解决方案1】:

    请注意,Twitter 的搜索服务以及扩展的 搜索 API 并不意味着是推文的详尽来源。不是全部 推文将被索引或通过搜索界面提供。

    更多信息请参考此链接:http://docs.tweepy.org/en/latest/api.html#help-methods

    您可能需要设置一个 Stream 来获取所需的数据量。

    【讨论】:

    • 谢谢 .. 会检查出来的。我确实设置了一个流。想知道搜索 API。
    猜你喜欢
    • 1970-01-01
    • 2021-12-12
    • 1970-01-01
    • 2022-11-23
    • 2018-07-03
    • 1970-01-01
    • 2014-11-22
    • 2015-11-08
    • 2013-09-05
    相关资源
    最近更新 更多