import tweepy
consumer_key = ''
consumer_secret = ''
access_token = ''
access_token_secret = ''
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
results = api.search(q="Indian Election")
for result in results:
print result.text
我只能下载几条tweets我怎么能下载1000条tweets或者不停地下载tweet呢
看看这个:
http://fidlr.org/post/51968189300/fetching-tweets-using-tweepy
您需要创建一个侦听器:
{Twitter>使用Twitter}搜索结果:
发件人:https://github.com/tweepy/tweepy/blob/master/examples/streaming.py
相关问题 更多 >
编程相关推荐