SNACES (Social Network Algorithm Contained Experiment System) is a Python library for downloading and analyze Twitter data, by making use of the Tweepy library and the Twitter API.
In order to make use of the Twitter API, and the tweepy package, you will need credential for the twitter API.
To retrieve these credentials sign up for a developer twitter account here.
Getting access may take several days. Once your application is approved,
you will get four keys: consumer key
, consumer secret
, access token
, and
access token secret
. Enter these four values into the file
./conf/credentials.py
.
- Clone Git repository to your workspace
- Run the install script
./scripts/install.sh
- Run
python ./setup.py
to setup the Pipfile - Run
pipenv shell
to start a pip environment using the pip file
- The main program can be started by running
python ./SNACES.py
. - This will trigger the main program to loop, which will then prompt you
to input options for which process to trigger:
Download
downloads information from twitterRaw Tweet Processing
processes raw tweetsWord Frequency
performs word frequency operations on collected dataSocial Graph
constructs a social graph from downloaded friendsClustering
performs clustering algorithms on data