twb

Twitter backup crawler


Keywords
twitter, backup
License
Other
Install
pip install twb==1.0.2

Documentation

TwitterBackup

A tool to back up other users' Twitter accounts using the Twitter API. (Currently limited to the last 3200 tweets).

Video.Demo.mp4

Usage

  1. Install python >= 3.7 (Tested on python 3.11)
  2. pip install twb
  3. Register for a Twitter API token
  4. Put your tokens in $HOME/.config/twb/config.toml or ./config.toml.
    You can reference the example config below
  5. Run command twb <username>, and it will download to ./backups

Example Config

# The consumer key from the Twitter application portal (https://developer.twitter.com/en/portal/dashboard)
consumer_key = '#########################'
# The consumer secret from the Twitter application portal
consumer_secret = '##################################################'
# The access token of an app from the Twitter application portal
access_token = '##################################################'
# The access secret of an app from the Twitter application portal
access_secret = '#############################################'