Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
| from TwitterAPI import TwitterAPI | |
| TRACK_TERM = 'pizza' | |
| api = TwitterAPI(<consumer key>, | |
| <consumer secret>, | |
| <access token key>, | |
| <access token secret>) | |
| r = api.request('statuses/filter', {'track': TRACK_TERM}) | |
| for item in r: | |
| print(item['text'] if 'text' in item else item) |