Create the scatterplots used in NYTimes' Follower Factory article.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
eiaine.png
ff.py
index.html

README.md

FollowerFactory

Create the scatterplots used in NYTimes' Follower Factory.

Getting Started

Install dependencies.

pip install TwitterAPI

Edit ff.py for your account. Go to https://apps.twitter.com/ to get your API keys. Don't forget to fill in your screen name (or someone else's).

CONSUMER_KEY = ''
CONSUMER_SECRET = ''
ACCESS_TOKEN = ''
ACCESS_TOKEN_SECRET = ''

SCREEN_NAME = 'eiaine'

Run!

python ff.py

This can take a long time due to Twitter's rate-limiting, so expect to wait about an hour for every 12,000 followers. When the script is complete, view the results by opening index.html in your web browser. Your plot will look something like this:

Troubleshooting

If the chart fails to load, you may be getting an error along the lines of Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. To fix this, either open index.html in firefox, or start chrome with --allow-file-access-from-files, or try some of the other suggestions listed here.