Fwd: how to collect old tweets from 03-20 Aug, 2014 for a particular location

Md. Hasanuzzaman hasanuzzaman.im at gmail.com
Wed Feb 18 11:08:32 EST 2015


Hello,

I am a PhD student. I am new to python and using TwitterSearch to collect
tweets from 03-20 Aug for a particular location (geocode). I am trying to
run the following piece of code.

twitter = Twython(CONSUMER_KEY,CONSUMER_SECRET,ACCESS_KEY,ACCESS_SECRET)
results = twitter.cursor(twitter.search, q='............',
max_id='501488707195924481', count=100, geocode='38.00,-91.00')

for result in results:
    print (result['id_str'])

However, it is not returning anything. Please help me in this regard. Can I
collect old tweets without any keyword for a particular location?

Thanks in advance.

Regards,
Mohammed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150218/91c6e3d5/attachment.html>


More information about the Python-list mailing list