Initial commit: XHS crawler with dedup and content extraction

This commit is contained in:
mzl
2026-01-09 16:07:07 +08:00
commit 83472e3af1
16 changed files with 3652 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
# Fast hot-patch without rebuild: copy host app/ into container then restart.
# Usage: ./quick_hotpatch.sh
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$ROOT_DIR"
echo "[hotpatch] Copying app/ into xhs-web..."
docker cp ./app/server.py xhs-web:/app/app/server.py
docker cp ./app/static/index.html xhs-web:/app/app/static/index.html
echo "[hotpatch] Restarting xhs-web..."
docker restart xhs-web >/dev/null
echo "[hotpatch] Tail logs..."
docker logs xhs-web --tail=50