Skip to main content

TwitterBackup

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

https://user-images.githubusercontent.com/22280294/207434663-a2fa6170-d740-4f35-82f6-df41bdce8837.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 = '#############################################'

Metadata

Release files for twb 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for twb 1.0.2
File Size Uploaded
twb-1.0.2.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for twb 1.0.2
File Interpreter ABI Platform
twb-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / twb-1.0.2.tar.gz

Download URL twb-1.0.2.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c1c7ef5d7efe80638cd04284d7b9f1be1050ef554461affe6d0494dc14a0f305
BLAKE2b-256 checksum
How to use checksums
0712fc9ac2c8b69906b1c3f88144da2bcb68d3ab9669bcbfa403bc572dc29ef1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release files / twb-1.0.2-py3-none-any.whl

Download URL twb-1.0.2-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86ed7e8588ae92e3bac53407e396b076e0e370e72b12c5596a8fc2569c9c9930
BLAKE2b-256 checksum
How to use checksums
c51915c809db4288b4d22b0ee4bd8b8b46c6272baefef75c1f7bd3f04763883c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page