Python for Twitter mining and Google Maps visualization
Presenter: Radhika S. Saksena, Senior Research Specialist, Department of Politics
In this week's session we'll see how to access Twitter's stream of tweets (free access level) and mine Twitter networks with Python. We will introduce examples of the Google geo-coding API and see how to visualize the Twitter data on Google Maps. Examples will be of interest to those interested in mining Twitter data and visualization using Google Maps. The aim of this session is to get everyone started with using these APIs for their own research problems!
In order to be able to follow along and run the code, you will need a Twitter developer account. This will give you the authorisation tokens you'll need to grant your Twitter app access to their data streams. Please see http://goo.gl/g6CPMD to get these tokens.
There are also a few dependencies. You can install these before the session if you like. If you're running Anaconda, or if you have pip on your system, then bring up a terminal and enter
pip install tweepy pygeocoder pygeolib pygmaps
Windows Anaconda users : you may need to browse to the directory where pip is before you can call pip, depending on how your PATH variable is set up. To do this, in your cmd prompt, cd to Anaconda/Scripts, and pip.exe is in there. Once you're there ( typically C:/Users/You/Anaconda/Scripts ), you can call the command listed above.
Audience: Graduate students and postdocs
Location: Room 346, Visualization Lab
Date/Time: 03/06/14 at 3:00 pm - 03/06/14 at 4:00 pm