初始化

This commit is contained in:
2026-07-18 16:13:52 +08:00
parent c0070f0a5c
commit fe8b417ab6
75 changed files with 12898 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
# =============================================
# 海外服务器:抓取英文财经新闻
# =============================================
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
cd "$PROJECT_DIR"
echo "[$(date)] ═══ 海外抓取开始 ═══"
PYTHONPATH=. .venv/bin/python3 -c "
from crawler.orchestrator import run_crawl_sync
stats = run_crawl_sync()
print(f'抓取完成: {stats.sources_crawled} 源, {stats.total_articles} 篇')
"
echo "[$(date)] ═══ 海外抓取完成 ✅ ═══"