feat(scripts): 全渠道全量重同步脚本(页面抓取+API全覆盖)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
浅念
2026-08-15 14:38:01 +08:00
parent 2d1943a74e
commit 7beae8cf55
2 changed files with 115 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/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 ==="