# Cron Job: 春考选题-文章抓取

**Job ID:** 94d230f73e7f
**Run Time:** 2026-08-04 16:24:46
**Schedule:** every 120m

## Prompt

[IMPORTANT: You are running as a scheduled cron job. DELIVERY: Your final response will be automatically delivered to the user — do NOT use send_message or try to deliver the output yourself. Just produce your report/output as your final response and the system handles the rest. SILENT: If there is genuinely nothing new to report, respond with exactly "[SILENT]" (nothing else) to suppress delivery. Never combine [SILENT] with content — either report your findings normally, or say [SILENT] and nothing more.]

运行文章抓取脚本。脚本已内置去重逻辑——只推送新文章到企微群，无新文章自动静默。

步骤：
1. cd /home/ubuntu/project/scripts
2. 设置环境变量并运行：
```
export QW_WEBHOOK_URL=$(grep QW_WEBHOOK_URL ../.env 2>/dev/null | cut -d= -f2-) 
export WE_MP_RSS_AK=$(grep WE_MP_RSS_AK ../.env | cut -d= -f2) 
export WE_MP_RSS_SK=$(grep WE_MP_RSS_SK ../.env | cut -d= -f2)
~/project/we-mp-rss-main/venv/bin/python3 fetch_and_push.py
```

3. 如果脚本输出包含 "No new articles" → 回复 [SILENT]
4. 如果脚本输出包含 "Pushed N new articles" → 回复脚本输出的最后一行摘要即可
5. 如果脚本报错 → 简短汇报错误类型

不用问我任何问题，直接执行。

## Response

**脚本报错：认证失败**

错误详情：`Auth fail: no token` — 服务 `localhost:8001` 在线，但 `.env` 中的 `WE_MP_RSS_AK` / `WE_MP_RSS_SK` 凭证不正确。API 返回 `40101: 用户名或密码错误，您还有3次机会`。推送 webhook 本身没问题（`errcode: 0`），但因认证失败脚本提前退出了，实际没有拉取和推送任何文章。

需要更新 `/home/ubuntu/project/.env` 中的 `WE_MP_RSS_AK` 和 `WE_MP_RSS_SK` 为正确的 we-mp-rss 登录凭据。
