質問

can some one show me the code of how can I follow all users who tweet about a specific hashtag?

役に立ちましたか?

解決

I guess you could use twython and start with a search example wich you can modify to suit your needs .

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')
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top