mirror of
https://github.com/Alvin-Zilverstand/Twitter-X-Media-Batch-Downloader.git
synced 2026-11-24 15:23:11 +01:00
91 lines
3.5 KiB
Markdown
91 lines
3.5 KiB
Markdown
[](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases)
|
|
|
|

|
|
|
|
<div align="center">
|
|
<b>Twitter/X Media Batch Downloader</b> is a GUI tool that allows users to download all media, including images and videos, in their original quality from Twitter/X accounts using <code>gallery-dl</code>
|
|
</div>
|
|
|
|
## 📥 Download
|
|
|
|
- **Windows**: Download the latest version of [TwitterXMediaBatchDownloader.exe](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v3.0/TwitterXMediaBatchDownloader.exe)
|
|
- **Linux**: Download the latest version of [TwitterXMediaBatchDownloader](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v3.0/TwitterXMediaBatchDownloader)
|
|
- If you're familiar with **userscripts**, please install it [here](https://greasyfork.org/en/scripts/523157)
|
|
|
|
## ✨ 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
|
|
|
|

|
|
|
|

|
|
|
|

|
|
|
|
## compiling from source
|
|
|
|
If you want to compile the application from source, you can follow these steps:
|
|
|
|
1. Clone the repository:
|
|
|
|
```bash
|
|
git clone https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader.git
|
|
```
|
|
|
|
2. Create a virtual environment and activate it:
|
|
|
|
```bash
|
|
python3 -m venv .venv
|
|
source .venv/bin/activate
|
|
```
|
|
|
|
3. Install the dependencies:
|
|
|
|
```bash
|
|
pip install -r requirements.txt
|
|
```
|
|
|
|
4. Run the application:
|
|
|
|
```bash
|
|
python TwitterXMediaBatchDownloader.py
|
|
```
|
|
|
|
5. To create an executable, use pyinstaller:
|
|
|
|
```bash
|
|
pip install pyinstaller
|
|
pyinstaller --onefile --windowed --icon=Archived/icon.svg TwitterXMediaBatchDownloader.py
|
|
```
|
|
|
|
## 🔑 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](https://www.patreon.com/posts/how-to-obtain-127206894)
|
|
|
|
1. Go to [Twitter's website](https://www.x.com/)
|
|
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](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v1.0/X.com.Auth.Token.Grabber.zip)
|
|
6. Do not log out of your account, as a new `auth_token` will be generated by Twitter
|
|
|
|
> X.com Auth Token Grabber
|
|
|
|

|
|
|
|
> Developer Tools
|
|
|
|

|