1
可以有人向我展示如何關注推特關於特定標籤的所有用戶的代碼?以下用戶用tweepy爲python推特定了特定的hashtag?
可以有人向我展示如何關注推特關於特定標籤的所有用戶的代碼?以下用戶用tweepy爲python推特定了特定的hashtag?
我想你可以使用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')