我正在使用pythontwitter库,但是我无法获得指定用户的所有时间线。你知道吗
api = twitter.Api(consumer_key='',
consumer_secret='',
access_token_key='',
access_token_secret='')
statuses = api.GetUserTimeline(screen_name = "me", count = 2000)
print len(statues)
始终返回:
200
如何获取一个用户的所有时间线?你知道吗
Tags:
来自
python-twitter
api源代码https://github.com/bear/python-twitter/blob/master/twitter/api.py:一个请求不能超过200条tweet。你知道吗
这样你就可以检索最后的200条tweet。如果你想得到更老的tweet,你必须使用
since_id
和max_id
参数。你知道吗相关问题 更多 >
编程相关推荐