/twitter-audit-log

Periodically collect data about my Twitter account and check in to github to preserve an audit trail.

Primary LanguageGo

Twitter audit trail backup

This repository backs up my follower list, following list, blocked accounts list and muted accounts list periodically using GitHub Actions.

Set up

This code currently uses both Twitter v1 and v2 APIs. v2 API is currently behind a manual approval process.

  1. Fork this repository.

  2. git rm *.txt and commit.

  3. Create a Twitter app.

  4. Go to Repository Settings → Secrets and add secrets from your Twitter app:

    • TWITTER_BEARER_TOKEN
    • TWITTER_CONSUMER_KEY
    • TWITTER_CONSUMER_SECRET
    • TWITTER_TOKEN_SECRET
  5. See .github/workflows/update.yml and modify the cron schedule (in UTC) as you see fit.

  6. Commit and push. Once the time arrives, the cron would work, and commit the lists into .txt files and push the changes.