Getting the location using Tweepy
问题 I am trying to figure out how to output the location of the twitter user only if they have it displayed. How would I go about doing that? Right now I have this: from tweepy import Stream from tweepy import OAuthHandler from tweepy.streaming import StreamListener import time import json from HTMLParser import HTMLParser ckey = '' csecret = '' atoken = '' asecret = '' class listener(StreamListener): def on_status(self, status): print status.text if status.coordinates: print 'coords:', status