Compare commits

...
19 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
5 changed files with 542 additions and 278 deletions

No files matched your search

+4 -3
View File
@@ -4,7 +4,7 @@ import os
from datetime import datetime
from gallery_dl.extractor import twitter
def get_metadata(username):
def get_metadata(username, auth_token):
url = f"https://x.com/{username}/timeline"
match = re.match(twitter.TwitterTimelineExtractor.pattern, url)
@@ -15,7 +15,7 @@ def get_metadata(username):
extractor.config = lambda key, default=None: {
"cookies": {
"auth_token": ""
"auth_token": auth_token
}
}.get(key, default)
@@ -75,4 +75,5 @@ def get_metadata(username):
return output
username = ""
get_metadata(username)
auth_token = ""
get_metadata(username, auth_token)
+4 -3
View File
@@ -3,7 +3,7 @@ import re
import os
from gallery_dl.extractor import twitter
def get_metadata(username):
def get_metadata(username, auth_token):
url = f"https://x.com/{username}/timeline"
match = re.match(twitter.TwitterTimelineExtractor.pattern, url)
@@ -14,7 +14,7 @@ def get_metadata(username):
extractor.config = lambda key, default=None: {
"cookies": {
"auth_token": ""
"auth_token": auth_token
}
}.get(key, default)
@@ -31,4 +31,5 @@ def get_metadata(username):
json.dump(all_items, f, indent=2, default=str)
username = ""
get_metadata(username)
auth_token = ""
get_metadata(username, auth_token)
+21 -17
View File
@@ -3,39 +3,36 @@
![TwitterXMediaBatchDownloader](https://github.com/user-attachments/assets/354d7470-c01c-4aa6-9da1-ea6c42d27330)
<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, even withheld 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>
## Download
- Download the latest version of [TwitterXMediaBatchDownloader](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v1.3/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)
## Features
- Uses the powerful `gallery-dl` library, similar to `yt-dlp`
- The ability to download media from **Withheld Accounts**
- 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
- Option to choose the media type to download: **media** (image + GIF + video) or just **image/GIF/video**
- **Batch** download settings, ranging from 10 to 100 files per download
- Filename format customization
## Screenshots
![image](https://github.com/user-attachments/assets/c8af187c-fd4c-4b3d-abb8-475a4d4a6b14)
![image](https://github.com/user-attachments/assets/7c5ebdda-c558-49ed-9f16-a6060b52f6f8)
![image](https://github.com/user-attachments/assets/8e9ecb0b-59ec-43a8-9648-78838b121582)
![python_7NZpAQ8RQi](https://github.com/user-attachments/assets/9982e4f5-a4b2-4d1b-9481-7bf7db700663)
![image](https://github.com/user-attachments/assets/779c7f75-08fb-4ba8-977a-8a29bae4a7e3)
![cqJLyzA73B](https://github.com/user-attachments/assets/fe989cc5-c9ea-47fb-8949-c1359c6b7132)
> Downloading from **Withheld Accounts**
> Downloading from **Withheld Account**
![image](https://github.com/user-attachments/assets/8ed5d0de-e83e-4dca-bf17-f9ed78bfd2ae)
![image](https://github.com/user-attachments/assets/dcc78e59-b0fd-47bd-a263-4e343f027c58)
![image](https://github.com/user-attachments/assets/bb76e9f1-6fa9-416d-92f1-e9d10ff85d86)
![image](https://github.com/user-attachments/assets/ba986e15-ffec-4cd4-900e-98bba0e513d6)
![image](https://github.com/user-attachments/assets/48bf3cc6-81d7-45dd-9d8c-40ef5b0317e9)
![image](https://github.com/user-attachments/assets/1ef4ec73-c77b-433a-ac79-f0df5be36bd1)
## How to Obtain Auth Token
@@ -43,12 +40,19 @@
> - 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/)
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 [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
![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"
}