A small project I made to see who unfollowed me on Twitter.
twitter_stats.py
checks if there are any unfollowers every 60 seconds and stores the stats in a persistent Python dictionary calledtwitter_stats.db
web.py
serves the results fromlocalhost:5000
Follow all the steps below in order.
- Clone the repo
clone https://github.com/rcakirerk/watch-twitter-unfollowers.git
- Go to the directory
cd watch-twitter-unfollowers
- Run
sudo pip install -r requirements
- Go to https://dev.twitter.com/apps and sign in
- Create an app (if you already have one skip to step 3)
- Open your apps page
- Create an access token (if you already have an access token skip to step 5)
- Go to wherever you've cloned the repo from your console
- Open settings.py.example and fill the keys and tokens you've just got from Twitter
- Rename settings.py.example to settings.py
mv settings.py.example settings.py
- Run twitter_stats.py in the background
python twitter_stats.py &
- Run the web server
python web.py
- Open your web browser and go to
localhost:5000