Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (11 sloc) 442 Bytes
# -*- coding: utf-8 -*-
import json
from recipe__oauth_login import oauth_login
from recipe__search import search
def get_entities(tweet):
return tweet['entities']
if __name__ == '__main__':
t = oauth_login()
tweets = search(t, "Python", max_batches=1, count=10) # Use "Python" as a sample query to get some tweets to process
entities = [ get_entities(tweet) for tweet in tweets ]
print json.dumps(entities, indent=1)
Jump to Line
Something went wrong with that request. Please try again.