How to get the location from geotagged tweets with tweepy?

Viewed 6808

I have the following code that looks for only geotagged tweets in English:

for tweet in tweepy.Cursor(api.search,
                           q="google",
                           geocode="40.7142700,-74.0059,5000km",
                           rpp=100,
                           result_type="recent",
                           include_entities=True,
                           lang="en").items():
    print (tweet.created_at,tweet.text)

Now how can I print along with the created date and the tweet the location of the tweet? I tried different things like tweet.geocode and tweet.locale but with no success. Please help me, thanks

2 Answers
Related