Compare commits

..
5 Commits
Author SHA1 Message Date
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
5 changed files with 16 additions and 13 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)
+4 -4
View File
@@ -8,14 +8,14 @@
## Download
- Download the latest version of [TwitterXMediaBatchDownloader](https://github.com/afkarxyz/Twitter-X-Media-Batch-Downloader/releases/download/v1.5/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
@@ -51,7 +51,7 @@
> X.com Auth Token Grabber
![image](https://github.com/user-attachments/assets/1213305b-95eb-4a8f-80f3-2655ca70f6e6)
![image](https://github.com/user-attachments/assets/4bf5f787-d34f-4259-837c-07a6432c4360)
> Developer Tools
+3 -2
View File
@@ -7,6 +7,7 @@ import re
import subprocess
from datetime import datetime
from pathlib import Path
from packaging import version
from PyQt6.QtWidgets import (QApplication, QMainWindow, QWidget, QVBoxLayout,
QHBoxLayout, QLabel, QLineEdit, QPushButton,
QProgressBar, QFileDialog, QRadioButton, QComboBox,
@@ -380,7 +381,7 @@ class UpdateDialog(QDialog):
class TwitterMediaDownloaderGUI(QMainWindow):
def __init__(self):
super().__init__()
self.current_version = "1.5"
self.current_version = "1.6"
self.setWindowTitle("Twitter/X Media Batch Downloader")
self.settings = QSettings('TwitterMediaDownloader', 'Settings')
@@ -412,7 +413,7 @@ class TwitterMediaDownloaderGUI(QMainWindow):
data = response.json()
new_version = data.get("version")
if new_version and new_version != self.current_version:
if new_version and version.parse(new_version) > version.parse(self.current_version):
dialog = UpdateDialog(self.current_version, new_version, self)
result = dialog.exec()
+1 -1
View File
@@ -1,3 +1,3 @@
{
"version": "1.5"
"version": "1.7"
}