Tracking my twitter followings, followers, and whether they surreptitiously change their handles or identities.
Repository inspired by @simonw's disaster-scrapers.
-
Obtain a Twitter Developer account.
-
Create a new Twitter application. The application does not need any additional settings, and requires Read-Only permissions of its users.
-
Generate and keep to hand Consumer API Keys (to authenticate the app), and an Access token & Access token secret (to authenticate against your own user account). All of these can be regenerated in the App's settings pages.
-
Add the following secrets from your Twitter app to the GitHub repository:
Name Value (from Twitter app) TWITTER_CONSUMER_KEY
Consumer API Key TWITTER_CONSUMER_SECRET
Consumer API Secret Key TWITTER_ACCESS_TOKEN
Access Token TWITTER_ACCESS_SECRET
Access Token Secret -
The script will be run automatically every hour, or on push to the
code
branch.