Compare commits

...
27 Commits
Author SHA1 Message Date
afkarxyz 7fa277931c Update v1.8 2025-03-23 18:26:37 +07:00
afkarxyz be080481bf Update README.md 2025-03-23 18:24:45 +07:00
afkarxyz 8a720e3e2b Update README.md 2025-03-04 09:16:57 +07:00
afkarxyz 48a672e0bd Update README.md 2025-03-04 09:10:50 +07:00
afkarxyz 91210f1c82 Update v1.7 2025-03-04 08:54:07 +07:00
afkarxyz cb2a244e37 Update README.md 2025-02-19 09:52:41 +07:00
afkarxyz 096425a0e1 Update version.json 2025-02-19 09:52:31 +07:00
afkarxyz c01a995b3d Update v1.6 2025-02-19 09:52:22 +07:00
afkarxyz b28b4ef14c Update README.md 2025-02-18 12:16:32 +07:00
afkarxyz 1e14fa6934 Update README.md 2025-02-18 10:41:57 +07:00
afkarxyz eac8a0f168 Update v1.5 2025-02-18 10:41:29 +07:00
afkarxyz f3904c276c Create version.json 2025-02-18 10:35:16 +07:00
afkarxyz fe9724fa2f Update README.md 2025-01-30 05:17:14 +07:00
afkarxyz 85e8f3135a Update README.md 2025-01-29 10:00:12 +07:00
afkarxyz 1e2725f900 Update README.md 2025-01-28 23:09:37 +07:00
afkarxyz 8e114a45e0 Update README.md 2025-01-28 23:08:55 +07:00
afkarxyz 92267dbf5e Update v1.4 2025-01-28 16:47:50 +07:00
afkarxyz 37da356f4c Update README.md 2025-01-28 16:47:25 +07:00
afkarxyz eb268f5f9f Update v1.3 2025-01-28 12:45:19 +07:00
afkarxyz e8ac4b8734 Update TwitterXMediaBatchDownloader.py 2025-01-28 12:39:36 +07:00
afkarxyz 99afe59a11 Update README.md 2025-01-28 12:28:27 +07:00
afkarxyz 8e8c0667df Update README.md 2025-01-27 06:27:52 +07:00
afkarxyz 03479326b3 Update README.md 2025-01-27 03:56:41 +07:00
afkarxyz b39f40e9f9 Update README.md 2025-01-24 04:44:54 +07:00
afkarxyz 5ed127f226 Update README.md 2025-01-23 09:36:27 +07:00
afkarxyz 3487edf691 Update README.md 2025-01-23 09:26:32 +07:00
afkarxyz 5b336df1d4 Update README.md 2025-01-23 09:02:23 +07:00
5 changed files with 722 additions and 260 deletions

No files matched your search

+4 -3
View File
@@ -4,7 +4,7 @@ import os
from datetime import datetime from datetime import datetime
from gallery_dl.extractor import twitter from gallery_dl.extractor import twitter
def get_metadata(username): def get_metadata(username, auth_token):
url = f"https://x.com/{username}/timeline" url = f"https://x.com/{username}/timeline"
match = re.match(twitter.TwitterTimelineExtractor.pattern, url) match = re.match(twitter.TwitterTimelineExtractor.pattern, url)
@@ -15,7 +15,7 @@ def get_metadata(username):
extractor.config = lambda key, default=None: { extractor.config = lambda key, default=None: {
"cookies": { "cookies": {
"auth_token": "" "auth_token": auth_token
} }
}.get(key, default) }.get(key, default)
@@ -75,4 +75,5 @@ def get_metadata(username):
return output return output
username = "" username = ""
get_metadata(username) auth_token = ""
get_metadata(username, auth_token)
+4 -3
View File
@@ -3,7 +3,7 @@ import re
import os import os
from gallery_dl.extractor import twitter from gallery_dl.extractor import twitter
def get_metadata(username): def get_metadata(username, auth_token):
url = f"https://x.com/{username}/timeline" url = f"https://x.com/{username}/timeline"
match = re.match(twitter.TwitterTimelineExtractor.pattern, url) match = re.match(twitter.TwitterTimelineExtractor.pattern, url)
@@ -14,7 +14,7 @@ def get_metadata(username):
extractor.config = lambda key, default=None: { extractor.config = lambda key, default=None: {
"cookies": { "cookies": {
"auth_token": "" "auth_token": auth_token
} }
}.get(key, default) }.get(key, default)
@@ -31,4 +31,5 @@ def get_metadata(username):
json.dump(all_items, f, indent=2, default=str) json.dump(all_items, f, indent=2, default=str)
username = "" username = ""
get_metadata(username) auth_token = ""
get_metadata(username, auth_token)
+31 -13
View File
@@ -3,38 +3,56 @@
![TwitterXMediaBatchDownloader](https://github.com/user-attachments/assets/354d7470-c01c-4aa6-9da1-ea6c42d27330) ![TwitterXMediaBatchDownloader](https://github.com/user-attachments/assets/354d7470-c01c-4aa6-9da1-ea6c42d27330)
<div align="center"> <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> <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, even withheld account, using <code>gallery-dl</code>
</div> </div>
## Download ## Download
- Download the latest version of [TwitterXMediaBatchDownloader](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v1.2/TwitterXMediaBatchDownloader.exe) - Download the latest version of [TwitterXMediaBatchDownloader](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v1.8/TwitterXMediaBatchDownloader.exe)
- If you're familiar with **userscripts**, please install it [here](https://greasyfork.org/en/scripts/523157-twitter-x-media-batch-downloader) - If you're familiar with **userscripts**, please install it [here](https://greasyfork.org/en/scripts/523157-twitter-x-media-batch-downloader)
## Features ## Features
- Uses the powerful `gallery-dl` library, similar to `yt-dlp` - Uses the powerful `gallery-dl` library, similar to `yt-dlp`
- Simple and compact GUI - The ability to download media from **Withheld Account**
- Option to choose the media type to download: **All Media** (Image + GIF + Video) or just **Image/GIF/Video**
- Download images and videos in original quality - Download images and videos in original quality
- Option to choose the media type to download: **media** (image + video) or just **image/video**
- **Batch** download settings, ranging from 10 to 100 files per download
- Filename format customization
## Screenshots ## Screenshots
![image](https://github.com/user-attachments/assets/ccdd8a8d-890f-4d3c-a3b1-56dad3eb82a9) ![image](https://github.com/user-attachments/assets/7c5ebdda-c558-49ed-9f16-a6060b52f6f8)
![image](https://github.com/user-attachments/assets/01a80593-59fe-4c2b-a325-7e401fa3048f) ![python_7NZpAQ8RQi](https://github.com/user-attachments/assets/9982e4f5-a4b2-4d1b-9481-7bf7db700663)
![image](https://github.com/user-attachments/assets/1779659e-3512-4e74-be0a-088419267fe0) ![cqJLyzA73B](https://github.com/user-attachments/assets/fe989cc5-c9ea-47fb-8949-c1359c6b7132)
> Downloading from **Withheld Account**
![image](https://github.com/user-attachments/assets/dcc78e59-b0fd-47bd-a263-4e343f027c58)
![image](https://github.com/user-attachments/assets/ba986e15-ffec-4cd4-900e-98bba0e513d6)
![image](https://github.com/user-attachments/assets/1ef4ec73-c77b-433a-ac79-f0df5be36bd1)
## How to Obtain Auth Token ## 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 will trigger a **rate limit**, and the media retrieval will fail.
1. Go to [Twitter's website](https://www.x.com/) 1. Go to [Twitter's website](https://www.x.com/)
2. Log into your account 2. Log into your account
3. Open the Developer Tools by pressing `F12` 3. Open the Developer Tools by pressing `F12`
4. Navigate to the **Application** tab, then select **Storage** > **Cookies** 4. Navigate to the **Application** tab, then select **Storage** > **Cookies**
5. Find and copy the `auth_token` value or use the browser extension [Cookie-Editor](https://cookie-editor.com/) 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 6. Do not log out of your account, as a new `auth_token` will be generated by Twitter
![image](https://github.com/user-attachments/assets/50f819da-7490-4f3c-b130-c5a3ee482e2d) > X.com Auth Token Grabber
![image](https://github.com/user-attachments/assets/4bf5f787-d34f-4259-837c-07a6432c4360)
> Developer Tools
![image](https://github.com/user-attachments/assets/8e81dd8f-f8be-4254-9cf6-cacfa97743e9)
File diff suppressed because it is too large. Load diff
+3
View File
@@ -0,0 +1,3 @@
{
"version": "1.7"
}