This repository backs up my follower list, following list, blocked accounts list and muted accounts list periodically using GitHub Actions.
This code currently uses both Twitter v1 and v2 APIs. v2 API is currently behind a manual approval process.
-
Fork this repository.
-
git rm *.txt
and commit. -
Create a Twitter app.
-
Go to Repository Settings → Secrets and add secrets from your Twitter app:
- TWITTER_BEARER_TOKEN
- TWITTER_CONSUMER_KEY
- TWITTER_CONSUMER_SECRET
- TWITTER_TOKEN_SECRET
-
See .github/workflows/update.yml and modify the cron schedule (in UTC) as you see fit.
-
Commit and push. Once the time arrives, the cron would work, and commit the lists into
.txt
files and push the changes.