0
我正在尋找打印特定用戶時間表,我似乎無法找到工作代碼段。使用tweepy打印twitter用戶時間表 - 引發錯誤
從文檔:
API.user_timeline([id/user_id/screen_name][, since_id][, max_id][, count][, page])
Returns the 20 most recent statuses posted from the authenticating user or the user specified. It’s also possible to request another user’s timeline via the id parameter.
我嘗試:
user = api.get_user('WSJ')
count = 25
for status in tweepy.Cursor(api.user_timeline(user, count, 2)):
print (tweet.text)
# print (statuts)
raise TweepError(error_msg, resp, api_code=api_error_code)
tweepy.error.TweepError: Twitter error response: status code = 414