所以我试图获得特定用户的时间表。这是代码:
import tweepy
consumer_key = 'numbers'
consumer_secret = 'numbers'
access_token = 'numbers'
access_token_secret = 'numbers'
user_list = [list of users]
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
for user in user_list:
for page in api.user_timeline(screen_name =user, count = 200):
print page
我尝试过使用旧文档。当我运行它时,我得到“抱歉,该页面不存在。代码34”
答案 0 :(得分:0)
我找到了解读代码文档的答案,将screen_name更改为user_name
for user in users:
for page in api.user_timeline(user_id =user, count = 200):
print page