Skip to content

Instantly share code, notes, and snippets.

@acapshaw
acapshaw / gist:771529c447fd4e85ded01a9843ee6872
Created June 26, 2018 01:09
Trying to Pull Tweets Specified to Certain Long/Lat...
Hi all, I'm trying to extract earthquake tweets from Twitter with specific long/lat coordinates thand en store into csv file..
However, the result returns tweets NOT specific to locaiton parameters, does anyone know why? Here is my code:
csvFile = open('seattle.csv', 'a')
csvWriter = csv.writer(csvFile)
for tweet in tweepy.Cursor(api.search,q="#earthquake",count=100,
location= "47.6126,-122.6222, 50mi",
lang="en",
since="2017-04-03").items():