Skip to content

πŸ•΅οΈβ€β™‚οΈ A tool for retrieving deleted X(Twitter) tweets and their media content from Wayback Machine archives.

License

Notifications You must be signed in to change notification settings

zozonteq/backxive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

BackXive

A tool for retrieving deleted X(Twitter) tweets and their media content from Wayback Machine archives. This tool helps you recover tweets that have been deleted but were previously archived by the Wayback Machine.

Features

  • Retrieve deleted tweets from Wayback Machine archives
  • Download media content (images) from archived tweets
  • Multi-threaded downloads for improved performance
  • Robust error handling with automatic retries
  • Date-based hierarchical data organization
  • Optimized execution using Bun runtime

Requirements

  • Bun (v1.0.0 or later)

Installation

# Clone the repository
git clone https://github.com/zozonteq/backxive.git
cd backxive

# Install dependencies
bun install

Usage

List Archived Tweets

Generate a list of archived tweets to download:

bun run src/cli.ts list <username>

Download Archived Tweets

Download deleted tweets from the Wayback Machine:

bun run src/cli.ts download <list_file>

Download Archived Images

Download images from archived tweets:

bun run src/cli.ts image <username>

Directory Structure

.
β”œβ”€β”€ attaches/          # Downloaded images from archived tweets
β”œβ”€β”€ tweets/           # Downloaded archived tweets
β”‚   └── YYYY/        # Year
β”‚       └── MM/      # Month
β”‚           └── DD/  # Day
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ cli.ts       # Command-line interface
β”‚   β”œβ”€β”€ modules/     # Feature modules
β”‚   └── core/        # Core functionality
└── .env             # Configuration file

Error Handling

The tool includes robust error handling with the following features:

  • Automatic retries for failed downloads
  • Rate limiting protection for Wayback Machine API
  • Skip existing files
  • Detailed error reporting
  • Handling of 404 errors for deleted content

Note

  • This tool can only retrieve tweets that were previously archived by the Wayback Machine
  • Not all deleted tweets may be available in the archive
  • The success rate depends on the Wayback Machine's archive coverage

License

MIT License

About

πŸ•΅οΈβ€β™‚οΈ A tool for retrieving deleted X(Twitter) tweets and their media content from Wayback Machine archives.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published