Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxcw/time-maps
PDF and python files for creating time maps and downloading tweets
https://github.com/maxcw/time-maps
Last synced: 3 months ago
JSON representation
PDF and python files for creating time maps and downloading tweets
- Host: GitHub
- URL: https://github.com/maxcw/time-maps
- Owner: maxcw
- Created: 2015-08-21T16:49:44.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-10T02:37:12.000Z (over 4 years ago)
- Last Synced: 2024-05-19T23:37:01.379Z (6 months ago)
- Language: Python
- Size: 9.74 MB
- Stars: 58
- Watchers: 4
- Forks: 22
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repository contains three python files for creating time maps and downloading tweets. The python files require a few packages. See below for details. To download tweets, you will need to set up your own Twitter account and paste the credentials into the top of tm_tools.py.
Post cool time maps to Twitter! #time_map_viz
Here is a description of each file:
heated_time_map_howto.py — this creates a heated time map using randomly generated points. It only requires numpy and scipy to run.
tweet_timemap.py — this file, along with tm_tools.py, downloads tweets and creates a corresponding time map. Within tweet_timemap.py, you specify the user account whose tweets you wish to download, and whether you want a heated time map or a normal time map (scatter plot). When the program is executed, an .eps file will be created containing the plot. The file's name is the user name whose tweets you downloaded.
tm_tools.py — contains the functions required to actually build the time map and grab the tweets. It requires the following packages: numpy, scipy, matplotlib, twython and colour. You will also need to paste your twitter credentials near top of this file. You’ll see where.
For a quick read on time maps, check out
[District Data Labs] (https://districtdatalabs.silvrback.com/time-maps-visualizing-discrete-events-across-many-timescales).I also wrote a longer [article] (http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=7363824) with more in-depth examples and connections to probability.