Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.23 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.23 KB

GeoTweet

Program to search tweets, tag, hashtag, user, with locations and maps

Credits

Requirements:

You can install this requirements by running python setup.py before anything else.

Requirements are

  • tweepy
  • geopy
  • folium
  • SimpleHTTPServer
  • SocketServer
  • webbrowser

How to use:

First of all you have to edit the keys.py in order to change the default placeholders with your twitter API values, then run python setup.py if you need to install the requirements and last python geotweet.py

Usage Example:

For search 200 results on #python hash tag in whatever country:

python geotweet.py -z IT -n 200 -m
  • with -n set results count
  • with -m create the visual map (optional)

Opening the visual maps: After performing the desired command, launch the web server with

python geotweet.py -s

and open the browser on the link you see in terminal.

Example Image: