Reputation: 99
can some one show me the code of how can I follow all users who tweet about a specific hashtag?
Upvotes: 1
Views: 726
Reputation: 12775
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')
Upvotes: 2