mirror of
https://github.com/Alvin-Zilverstand/Twitter-X-Media-Batch-Downloader.git
synced 2026-12-01 10:31:24 +01:00
v4.1
This commit is contained in:
1 parent
2d913d987f
commit
aa87cce538
25 files changed
+3835
-1574
No files matched your search
+1
-9
@@ -51,12 +51,4 @@ python -m nuitka --onefile --output-filename=extractor.exe --include-package=gal
|
||||
### Output Location
|
||||
|
||||
- PyInstaller: `dist/extractor` or `dist/extractor.exe`
|
||||
- Nuitka: `extractor` or `extractor.exe` (in current directory)
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- The main application automatically manages the binary (extracts, updates, and uses it)
|
||||
- Manual building is only needed if you're developing or customizing the extractor
|
||||
- The pre-built binary is kept in sync with the application version
|
||||
- Nuitka: `extractor` or `extractor.exe` (in current directory)
|
||||
+1
-51
@@ -1,29 +1,7 @@
|
||||
# twitter_cli.py — Usage Guide
|
||||
# Usage Guide
|
||||
|
||||
CLI tool for extracting media and metadata from Twitter/X using gallery-dl extractor.
|
||||
|
||||
## Quickstart
|
||||
|
||||
1. **Set up environment**
|
||||
```powershell
|
||||
cd helper
|
||||
python -m venv .venv
|
||||
.\.venv\Scripts\Activate.ps1
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
2. **Verify gallery-dl**
|
||||
```powershell
|
||||
python -c "import gallery_dl; print(gallery_dl.__version__)"
|
||||
```
|
||||
|
||||
3. **Quick test** (using demo account):
|
||||
```powershell
|
||||
python twitter_cli.py https://x.com/xbatchdemo/media --limit 1 --json --guest
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Command Line Arguments
|
||||
|
||||
### Required
|
||||
@@ -277,34 +255,6 @@ Use in search URLs:
|
||||
|
||||
---
|
||||
|
||||
## Authentication
|
||||
|
||||
### Getting Your Auth Token
|
||||
|
||||
1. Open Twitter/X in your browser
|
||||
2. Open Developer Tools (F12)
|
||||
3. Go to Application/Storage → Cookies
|
||||
4. Find cookie named `auth_token`
|
||||
5. Copy its value
|
||||
|
||||
### Security Notes
|
||||
|
||||
- Use a dummy/secondary account for scraping
|
||||
- Don't share your auth token
|
||||
- Excessive usage may cause account suspension
|
||||
- Guest mode has stricter rate limits
|
||||
|
||||
---
|
||||
|
||||
## Rate Limits
|
||||
|
||||
- **Guest mode**: Lower limits, may hit rate limit faster
|
||||
- **Authenticated**: Higher limits but still restricted
|
||||
- **Rate limit hit**: Script will wait and retry automatically
|
||||
- **Best practice**: Use `--limit` to control fetch size
|
||||
|
||||
---
|
||||
|
||||
## Tips & Tricks
|
||||
|
||||
### 1. Progressive Fetch with Resume
|
||||
|
||||
Reference in new issue
Block a user