YouTube rate limit protection + progressive retry system
- New: tools/yt_download.py with cookies support + rate limit tracking - New: docs/YOUTUBE-SETUP.md complete documentation - Updated: night-execute jobs to use new script - Updated: TOOLS.md with YouTube section - Added: 5 new YouTube notes (OpenClaw, cost optimization, task system, leads) - Added: credentials/ to .gitignore
This commit is contained in:
36
TOOLS.md
36
TOOLS.md
@@ -23,6 +23,13 @@
|
||||
python3 tools/email_process.py --save # salvează ca note în memory/kb/emails/
|
||||
```
|
||||
|
||||
### 📧 Email Whitelist
|
||||
**Răspuns automat permis doar pentru:**
|
||||
- mmarius28@gmail.com (Marius - personal)
|
||||
- marius.mutu@romfast.ro (Marius - work)
|
||||
|
||||
**Pentru orice altă adresă:** Citesc și raportez, aștept aprobare.
|
||||
|
||||
**Flux email → note → insights:**
|
||||
1. Marius face forward la `echo@romfast.ro`
|
||||
2. La heartbeat sau manual: `python3 tools/email_process.py --save`
|
||||
@@ -378,3 +385,32 @@ claude -p "descrie sarcina aici"
|
||||
- Template activități scout
|
||||
- Locații Constanța (de completat)
|
||||
- Contacte echipă (de completat)
|
||||
|
||||
---
|
||||
|
||||
## YouTube Subtitle Download (Rate Limit Protected)
|
||||
|
||||
**Script:** `python3 tools/yt_download.py URL [URL2] ...`
|
||||
|
||||
**Setup:**
|
||||
- Cookies: `credentials/youtube-cookies.txt` (export din browser)
|
||||
- Deno: `~/.deno/bin/deno` (pentru JS challenges)
|
||||
|
||||
**Limite:**
|
||||
- Max 30 video-uri per sesiune
|
||||
- Sleep 20s între downloads
|
||||
- Progressive retry: 2h → 4h → 24h
|
||||
|
||||
**Rate limit state:** `memory/youtube-rate-limit.json`
|
||||
|
||||
**Exit codes:**
|
||||
- 0 = success
|
||||
- 1 = some errors
|
||||
- 2 = rate limited (429)
|
||||
- 3 = în cooldown, retry mai târziu
|
||||
|
||||
**Verificare status:**
|
||||
```bash
|
||||
python3 tools/yt_download.py # fără args = arată status
|
||||
cat memory/youtube-rate-limit.json
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user