有人可以告诉我如何关注所有关于特定主题标签的推文的用户吗?
最佳答案
我想你可以使用twython并从搜索 example 开始您可以修改以满足您的需要。
from twython import Twython, TwythonError
# Requires Authentication as of Twitter API v1.1
twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
try:
search_results = twitter.search(q='#python', count=50)
except TwythonError as e:
print e
for tweet in search_results['statuses']:
print tweet['user']['screen_name'].encode('utf-8')
关于python - 关注使用 python tweepy 发布特定主题标签的用户?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23178727/