Compare commits

..
12 Commits
Author SHA1 Message Date
afkarxyz 43f4d84593 v2.8 2025-07-03 20:30:46 +07:00
afkarxyz 4cecb6b14e Update README.md 2025-07-03 20:17:50 +07:00
afkarxyz eb712d5d8d Update README.md 2025-07-03 19:59:24 +07:00
afkarxyz 46c178fec0 Update README.md 2025-06-29 14:59:54 +07:00
afkarxyz 8ce5f1f833 v2.7 2025-06-24 18:39:50 +07:00
afkarxyz 0a80a3d331 v2.7 2025-06-24 18:39:30 +07:00
afkarxyz f8b27ecb5a v2.7 2025-06-24 18:30:38 +07:00
afkarxyz 70e79af700 v2.6 2025-06-03 05:17:49 +07:00
afkarxyz 4fb60840a0 v2.6 2025-05-31 20:23:57 +07:00
afkarxyz 5613c152f8 v2.6 2025-05-31 20:19:24 +07:00
afkarxyz ad5d7727eb Update README.md 2025-05-31 20:16:53 +07:00
afkarxyz ed1f0fce06 v2.5 2025-05-08 08:03:31 +07:00
4 changed files with 973 additions and 857 deletions

No files matched your search

+11 -9
View File
@@ -8,27 +8,29 @@
## 📥 Download ## 📥 Download
- Download the latest version of [TwitterXMediaBatchDownloader](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v2.4.5/TwitterXMediaBatchDownloader.exe) - Download the latest version of [TwitterXMediaBatchDownloader](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v2.7/TwitterXMediaBatchDownloader.exe)
- If you're familiar with **userscripts**, please install it [here](https://greasyfork.org/en/scripts/523157) - If you're familiar with **userscripts**, please install it [here](https://greasyfork.org/en/scripts/523157)
## ✨ Features ## ✨ Features
- Powered by `gallery-dl`, similar to `yt-dlp` - Powered by `gallery-dl`, similar to `yt-dlp`
- **Choose media type**: All (Image + GIF + Video) or specific (Image/GIF/Video) - **Bulk download**: Download multiple items at once
- Downloads in original quality - 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 ## 🖼️ Screenshots
![image](https://github.com/user-attachments/assets/718c5725-6323-4ece-8552-a467767de039) ![image](https://github.com/user-attachments/assets/c08d913d-6e1c-4401-9336-7d9642a6a609)
![python_7NZpAQ8RQi](https://github.com/user-attachments/assets/9982e4f5-a4b2-4d1b-9481-7bf7db700663) ![image](https://github.com/user-attachments/assets/79fb6281-03c1-4629-9db2-c1f8990ca8b8)
![image](https://github.com/user-attachments/assets/e8960328-f38d-4944-91a4-31b792ce47e3) ![image](https://github.com/user-attachments/assets/b20b3431-f64c-4c18-8946-99ce52018caa)
> [!Important] > [!Important]
> Use **Batch** if the items to be downloaded are in the thousands. > Please enable **Batch** if the media to be downloaded is thousands.
## 🔑 How to Obtain Auth Token ## 🔑 How to Obtain Auth Token 👉 [Video](https://www.patreon.com/posts/how-to-obtain-127206894)
> [!Warning] > [!Warning]
> - I suggest not using the **main account** to obtain the token. > - I suggest not using the **main account** to obtain the token.
@@ -39,7 +41,7 @@
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 [X.com Auth Token Grabber](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v1.0/X.com.Auth.Token.Grabber.zip) 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
File diff suppressed because it is too large. Load diff
+3 -3
View File
@@ -149,11 +149,11 @@ def get_metadata(username, auth_token, timeline_type="timeline", batch_size=0, p
except Exception as e: except Exception as e:
error_msg = str(e).lower() error_msg = str(e).lower()
if "withheld" in error_msg or e.__class__.__name__ == "ValueError" and str(e) == "withheld": if "withheld" in error_msg or e.__class__.__name__ == "ValueError" and str(e) == "withheld":
return {"error": "withheld"} return {"error": "To download withheld accounts, use this userscript version: https://www.patreon.com/exyezed"}
else: else:
error_str = str(e) error_str = str(e)
if error_str == "None": if error_str == "None":
return {"error": "null"} return {"error": "Failed to authenticate. Please verify your auth token is valid and not expired."}
else: else:
return {"error": error_str} return {"error": error_str}
@@ -178,7 +178,7 @@ def main():
except Exception as e: except Exception as e:
error_str = str(e) error_str = str(e)
if error_str == "None": if error_str == "None":
print(json.dumps({"error": "null"}, ensure_ascii=False)) print(json.dumps({"error": "Failed to authenticate. Please verify your auth token is valid and not expired."}, ensure_ascii=False))
else: else:
print(json.dumps({"error": error_str}, ensure_ascii=False)) print(json.dumps({"error": error_str}, ensure_ascii=False))
+1 -1
View File
@@ -1,3 +1,3 @@
{ {
"version": "2.4.5" "version": "2.7"
} }