Compare commits

..
6 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
4 changed files with 939 additions and 897 deletions

No files matched your search

+11 -11
View File
@@ -8,29 +8,29 @@
## 📥 Download ## 📥 Download
- Download the latest version of [TwitterXMediaBatchDownloader](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v2.6/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/ca8b6019-505e-4fb0-b1c5-52b7bcc892b4) ![image](https://github.com/user-attachments/assets/c08d913d-6e1c-4401-9336-7d9642a6a609)
![image](https://github.com/user-attachments/assets/8297f150-d581-4bb0-b80e-98d44aec18b5) ![image](https://github.com/user-attachments/assets/79fb6281-03c1-4629-9db2-c1f8990ca8b8)
![image](https://github.com/user-attachments/assets/1f310499-0b03-4daf-ad83-e38cee22ce0c) ![image](https://github.com/user-attachments/assets/b20b3431-f64c-4c18-8946-99ce52018caa)
![image](https://github.com/user-attachments/assets/e30f4c74-988c-4cd2-a1b2-2b72add1ac6e)
> [!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.
@@ -41,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.6" "version": "2.7"
} }