Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eraclitux/twiph
[UNMANTAINED] twiph draws fancy interactive graphs representation of Twitter connections (aka friends)
https://github.com/eraclitux/twiph
Last synced: about 8 hours ago
JSON representation
[UNMANTAINED] twiph draws fancy interactive graphs representation of Twitter connections (aka friends)
- Host: GitHub
- URL: https://github.com/eraclitux/twiph
- Owner: eraclitux
- License: mit
- Created: 2015-10-15T21:02:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-21T06:36:41.000Z (about 9 years ago)
- Last Synced: 2024-06-20T15:54:45.070Z (5 months ago)
- Language: Go
- Homepage:
- Size: 148 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
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//keys
Examples
========These are the output for the 100 younger italian parliamentarians grouped by political parties:
|image0|_ |image1|_
.. |image0| image:: http://www.eraclitux.com/img/twiph_100_younger.png
.. _image0: http://www.eraclitux.com/img/twiph_100_younger.pngand with avatars:
.. |image1| image:: http://www.eraclitux.com/img/twiph_100_younger_avatar.png
.. _image1: http://www.eraclitux.com/img/twiph_100_younger_avatar.pngLive 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.csvRun 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.