Tweepy在检索tweets时遇到问题我无法在date创建tweet,它会将今天的日期分配给检索到的每个tweet,我能得到帮助吗?你知道吗
我已经检索了我所需要的所有其他属性,除了在attributed创建的tweet。它一直给我今天的日期作为推特的创建日期。请参见以下代码:
query = "Australia"
max_tweets = 20
results = tweepy.Cursor(api.search,
q=query,
since='2018-09-8',
max='2018-09-21',
lang='en',
tweet_mode='extended').items(max_tweets)
for tweet in results:
print(tweet.created_at)
这是我的收入:
2019-03-25 23:13:18
2019-03-25 22:56:07
2019-03-25 22:55:11
2019-03-25 22:52:00
2019-03-25 22:46:41
2019-03-25 22:45:07
2019-03-25 22:45:00
2019-03-25 22:43:33
我没有得到每条tweet的实际日期,它给出了我运行代码的日期和时间。你知道吗
谢谢。你知道吗
Twitter只允许在上周内搜索tweet。我怀疑你的结果显示了最新的数据。增加tweet的数量,你可能会看到日期最多可以追溯到一周前。你知道吗
链接到大多数库围绕的twitters标准API。它指定了标准API,允许一周前进行历史数据搜索。
https://developer.twitter.com/en/docs/tweets/search/overview
相关问题 更多 >
编程相关推荐