- Install tweepy
pip install tweepy
-
Copy
config.ini.sample
toconfig.ini
-
Configure
[twitter]
section with your Twitter API credentials -
Configure
[filter]
section forstreaming
API request parameters:locations
,track
. Default is harvesting any tweets related to Melbourne city. -
Run application
python main.py
. Better yet, use PyCharm and run.
- Use http://geojson.io or http://boundingbox.klokantech.com to get your city of interest or domain bounding box
- Usually there are 5 elements in GeoJSON coordinate array. In that case, you will want index
0
and2
as an example follow:
[[
[144.6075439453,-38.395491533],
[145.2035522461,-38.395491533],
[145.2035522461,-37.5990001506],
[144.6075439453,-37.5990001506],
[144.6075439453,-38.395491533]
]]
[144.6075439453,-38.395491533, 145.2035522461,-37.5990001506]