Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 22462

Catalin George Festila: Use the twitter python module - part 002.

$
0
0
Using the twitter python module named python-twitter you can search twitter query into local area.
The default tutorial is here.
The source code to change is that line:
results = api.GetSearch(raw_query="q=from%3Asomething"
with:
results = api.GetSearch(raw_query="q=&geocode=lat,long,10km")
Also you need to put your lat and long and area sized.
The good point of this you will be able to spell time with twitter posts.

Viewing all articles
Browse latest Browse all 22462

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>