7beae8cf55
Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
709 B
Bash
20 lines
709 B
Bash
#!/bin/bash
|
|
# Full re-sync via page scraper (zero 风控)
|
|
cd "$(dirname "$0")/.."
|
|
export DB_URL="sqlite+aiosqlite:///./smoke.db"
|
|
PY=".venv/Scripts/python.exe"
|
|
|
|
echo "$(date) === 1/3: Refreshing ALL wechat customers ==="
|
|
$PY scripts/scrape_via_page.py --entity friends --max-employees 100
|
|
echo "$(date) === Friends done ==="
|
|
|
|
echo "$(date) === 2/3: Refreshing ALL wechat groups ==="
|
|
$PY scripts/scrape_via_page.py --entity groups --max-employees 100
|
|
echo "$(date) === Groups done ==="
|
|
|
|
echo "$(date) === 3/3: Scraping messages (1000 conversations) ==="
|
|
$PY scripts/scrape_via_page.py --entity messages --max-conversations 1000
|
|
echo "$(date) === Messages done ==="
|
|
|
|
echo "$(date) === FULL RE-SYNC COMPLETE ==="
|