afkarxyz c7615ed2f6 Merge pull request #16 from Alvin-Zilverstand/main
feat: Add Linux executable and compilation instructions
2025-07-12 22:12:19 +07:00
2025-07-05 06:16:21 +07:00
2025-07-04 13:37:03 +07:00
2025-01-19 16:19:37 +07:00
2025-07-12 22:09:34 +07:00
2025-07-04 13:37:03 +07:00
2025-07-04 13:44:57 +07:00

GitHub All Releases

TwitterXMediaBatchDownloader

Twitter/X Media Batch Downloader is a GUI tool that allows users to download all media, including images and videos, in their original quality from Twitter/X accounts using gallery-dl

📥 Download

✨ Features

  • Powered by gallery-dl, similar to yt-dlp
  • Bulk download: Download multiple items at once
  • Media-type selection: All (Images + GIFs + Videos) or specific (Images / GIFs / Videos)
  • MP4 → GIF conversion: Convert downloaded MP4 videos into GIF format
  • Downloads at original quality

🖼️ Screenshots

image

image

image

🛠️ Compiling from Source (Ubuntu/Linux)

Follow these steps to compile and run the application from source:

1. Install Required Packages

sudo apt install git python3-pip python3-venv

2. Clone the Repository

git clone https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader.git
cd Twitter-X-Media-Batch-Downloader

3. Create and Activate a Virtual Environment

python3 -m venv .venv
source .venv/bin/activate

4. Install Python Dependencies

pip install -r requirements.txt
pip install pyinstaller

5. Build the Executable

pyinstaller --onefile --windowed TwitterXMediaBatchDownloader.py

6. Run the Application

The compiled binary will be located in the dist/ folder:

./dist/TwitterXMediaBatchDownloader

❓ The downloaded file won't run?

If the binary file you downloaded doesn’t run (e.g., double-clicking does nothing or you get a “permission denied” error), it’s likely missing the executable permission.

✅ Solution: Open your terminal and run:

chmod +x TwitterXMediaBatchDownloader
./TwitterXMediaBatchDownloader

This will give the file permission to run on your system.

🔑 How to Obtain Auth Token

Warning

  • I suggest not using the main account to obtain the token.
  • You can use https://temp-mail.io to register a Twitter account.
  • Using an auth token or cookies has the potential to get the account suspended.
  • If too many media files are fetched, it may trigger a rate limit, and the media retrieval will fail, try enabling Batch mode.

Video Tutorial

  1. Go to Twitter's website
  2. Log into your account
  3. Open the Developer Tools by pressing F12
  4. Navigate to the Application tab, then select Storage → Cookies
  5. Find and copy the auth_token value or use the browser extension X.com Auth Token Grabber
  6. Do not log out of your account, as a new auth_token will be generated by Twitter

X.com Auth Token Grabber

image

Developer Tools

image

S
Description
Downloads original-quality images and videos from Twitter/X accounts.
Readme GPL-3.0
1.9 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 74.1%
Go 21.9%
JavaScript 2.6%
CSS 1.2%
HTML 0.2%