From 91210f1c8275c422d4c59a4ec28c661155ef212e Mon Sep 17 00:00:00 2001 From: afkarxyz Date: Tue, 4 Mar 2025 08:54:07 +0700 Subject: [PATCH] Update v1.7 --- Archived/getMetadata.py | 7 ++++--- Archived/getRAW.py | 7 ++++--- README.md | 6 +++--- version.json | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Archived/getMetadata.py b/Archived/getMetadata.py index fcbf66f..a3be75e 100644 --- a/Archived/getMetadata.py +++ b/Archived/getMetadata.py @@ -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) \ No newline at end of file diff --git a/Archived/getRAW.py b/Archived/getRAW.py index 97eaa1e..e2cc9bd 100644 --- a/Archived/getRAW.py +++ b/Archived/getRAW.py @@ -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) \ No newline at end of file diff --git a/README.md b/README.md index 1a17a97..be06830 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,14 @@ ## Download -- Download the latest version of [TwitterXMediaBatchDownloader](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v1.6/TwitterXMediaBatchDownloader.exe) +- Download the latest version of [TwitterXMediaBatchDownloader](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v1.7/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** _(requires unchecking the **Local** option)_ -- Option to choose the media type to download: **media** (image + GIF + video) or just **image/GIF/video** +- The ability to download media from **Withheld Accounts** _(maybe requires checking the **Use gallery-dl API** option)_ +- 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 ## Screenshots diff --git a/version.json b/version.json index f3fee62..8946519 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "1.6" + "version": "1.7" }