{% extends "base.html" %} {% block title %}重新采集 — News Harvester{% endblock %} {% block extra_head %} {% if state and state.running %} {% endif %} {% endblock %} {% block content %}

重新采集(按链接)

粘贴一篇文章的原文链接,系统会重新抓取该篇正文与配图:已归档过的文章覆盖原 原文.md(保留中文摘要)、更新 registry/index,并单篇重推 News Hub (后端按 sourceId+url 幂等更新,版本 +1);未归档过的链接作为新文章写入今天目录 (待补中文摘要后随日目录推送)。浏览器源走该站共享实例,站点正在采集时会拒绝执行,稍等重试即可。

{% with messages = get_flashed_messages() %} {% if messages %}{% for m in messages %}
{{ m }}
{% endfor %}{% endif %} {% endwith %}
{% if state %}

上次执行

链接: {{ state.url }}
开始: {{ state.start or '—' }} {% if state.running %} · ⏳ 进行中…(每 5 秒自动刷新) {% elif state.done %} {% if state.rc == 0 %} · ✅ 成功 {% else %} · ✗ 失败(退出码 {{ state.rc }}){% endif %} {% endif %}

{% if state.output %}
{{ state.output }}
{% endif %}
{% endif %} {% endblock %}