Skip to content

eraclitux/twiph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twiph

twiph draws fancy interactive graphs representation of Twitter connections (aka friends) given a list of names/surnames. It could be uselful to spot and analyze social connections whithin an arbitrary list of people.

Authentication

You need to create your own app: https://apps.twitter.com/app/new

Then an Access Token must be created https://apps.twitter.com/app/<app-id>/keys

Examples

These are the output for the 100 younger italian parliamentarians grouped by political parties:

image0_ image1_

and with avatars:

Live demo

http://www.eraclitux.com/twiph_demo/100_younger_camera_groups/index_groups.html

http://www.eraclitux.com/twiph_demo/100_younger_camera_groups/index_avatar.html

Usage

Once retrieved auth credentils and created a cfg file (a sample is provided in conf/sample.cfg):

export CFGP_FILE_PATH=./conf/mine.cfg;
twiph -csv list.csv

Run tests

Tests need Twitter api credentials. You can specify them by command line or in configuration file:

export CFGP_FILE_PATH=./conf/test.cfg; go test

Notes

Graphs with nodes >= ~100 start to be very heavy (cpu intensive) to display.

Credits

The amazing D3.js is used to create graphs http://d3js.org/

Political data has been retrieved by Openpolis REST APIs http://api3.openpolis.it/

Disclaimer

All trademarks, copyrights and other forms of intellectual property belong to their respective owners.

The author is not affiliated with any vendor cited above.

About

[UNMANTAINED] twiph draws fancy interactive graphs representation of Twitter connections (aka friends)

Resources

License

Stars

Watchers

Forks

Packages

No packages published