문제

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