· 7 years ago · Dec 09, 2017, 05:54 AM
1from twython import Twython
2import json
3app_key=""
4app_secret=""
5oauth_token=""
6ouath_token_secret=""
7
8twitter = Twython(app_key,app_secret,oauth_token,ouath_token_secret)
9
10data=twitter.search(q='MumbaiRains',result_type='Mixed',count=100)
11
12statuses = data['statuses']
13
14for post in statuses:
15 print(post['id_str']+':'+post['text'])