mirror of
https://github.com/Alvin-Zilverstand/Twitter-X-Media-Batch-Downloader.git
synced 2026-11-24 07:13:11 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43f4d84593 | ||
|
|
4cecb6b14e | ||
|
|
eb712d5d8d | ||
|
|
46c178fec0 | ||
|
|
8ce5f1f833 | ||
|
|
0a80a3d331 | ||
|
|
f8b27ecb5a | ||
|
|
70e79af700 | ||
|
|
4fb60840a0 |
No files matched your search
@@ -8,29 +8,29 @@
|
||||
|
||||
## 📥 Download
|
||||
|
||||
- Download the latest version of [TwitterXMediaBatchDownloader](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v2.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)
|
||||
|
||||
## ✨ Features
|
||||
|
||||
- Powered by `gallery-dl`, similar to `yt-dlp`
|
||||
- **Choose media type**: All (Image + GIF + Video) or specific (Image/GIF/Video)
|
||||
- Downloads in original quality
|
||||
- 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
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||

|
||||
|
||||

|
||||
|
||||

|
||||

|
||||
|
||||
> [!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]
|
||||
> - 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/)
|
||||
2. Log into your account
|
||||
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)
|
||||
6. Do not log out of your account, as a new `auth_token` will be generated by Twitter
|
||||
|
||||
|
||||
+992
-897
File diff suppressed because it is too large.
Load diff
+3
-3
@@ -149,11 +149,11 @@ def get_metadata(username, auth_token, timeline_type="timeline", batch_size=0, p
|
||||
except Exception as e:
|
||||
error_msg = str(e).lower()
|
||||
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:
|
||||
error_str = str(e)
|
||||
if error_str == "None":
|
||||
return {"error": "null"}
|
||||
return {"error": "Failed to authenticate. Please verify your auth token is valid and not expired."}
|
||||
else:
|
||||
return {"error": error_str}
|
||||
|
||||
@@ -178,7 +178,7 @@ def main():
|
||||
except Exception as e:
|
||||
error_str = str(e)
|
||||
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:
|
||||
print(json.dumps({"error": error_str}, ensure_ascii=False))
|
||||
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"version": "2.5"
|
||||
"version": "2.7"
|
||||
}
|
||||
Reference in new issue
Block a user