【发布时间】:2021-06-18 10:49:06
【问题描述】:
显然 Tweepy 现在支持 OAuth 2 (link)。但是,当我仍然尝试使用它时,我无法超过 3200 条推文的限制(尽管我有一个学术帐户)。关于我做错了什么的任何提示?
consumer_key = 'xxxxxx'
consumer_secret = 'xxxxxxxxxxx'
auth = tweepy.AppAuthHandler(consumer_key, consumer_secret)
api = tweepy.API(auth)
text_list, date =([] for i in range(2))
for user in tweepy.Cursor(api.user_timeline, id="snow", tweet_mode='extended', count=200).items():
text_list.append(user.full_text)
date.append(user.created_at)
【问题讨论】:
标签: python twitter oauth-2.0 tweepy