This is a tool for collecting data from Twitter. Currently the focus is on egocentric networks. After collecting and caching the data, this tool can output the data in .gexf format for visualization.
- networkx
- simplejson
- nose
-
Clone the repository
-
Go into the local copy
cd poll.emic
-
Install. Currently
python setup.py develop
-
Change the configuration in config.cfg to match app credentials to authenticate against eh Twitter API:
[OAuth] accesstoken:realaccesstoken accesstokenkey:realtokenkey consumerkey:consumerkey consumersecret:consumersecret
[Settings] cachepath:path/to/cache/directory
For one application of this, try running the getsnowball script.
python bin/getsnowball.py
This should start crawling a snowball centered on a particular Twitter user.