feat(scripts): 全渠道全量重同步脚本(页面抓取+API全覆盖)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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 ==="
|
||||
Reference in New Issue
Block a user