{% extends "base.html" %} {% block title %}站点登录 — News Harvester{% endblock %} {% block extra_head %} {% if test_state and test_state.values() | selectattr('running') | list %} {% endif %} {% endblock %} {% block content %}
按站点维护凭据:站点 = 源名第一段,同一账号的多个频道共享一份凭据与配方
(如 nikkei 一份凭据覆盖 nikkei-world / nikkei-markets / nikkei-tech 全部频道)。
保存后以 600 权限落盘(etc/news-harvester/logins/),密码不再回显;
每个频道采集前自动预检,未登录会自动登录。配方在技能仓 logins/ 下维护(同样按站点)。
| 站点 | 登录账号 | 首页 | 覆盖频道 | 凭据 | 自动登录配方 | 上次测试 | 操作 |
|---|---|---|---|---|---|---|---|
{{ r.site }} |
{{ r.user or '—' }} | {{ r.url or '—' }} |
{% if r.sources %}
{% for s in r.sources %}{{ s }}{% endfor %}
{% else %}
未接入源(先在栏目管理添加 {{ r.site }}-* 源)
{% endif %}
|
{% if r.configured %}已配置 {% else %}未配置{% endif %} | {% if r.has_recipe %}支持 {% else %}无配方(配置凭据后点右侧按钮自动生成){% endif %} | {% set st = test_state.get(r.site) %}
{% if st and st.running %}
测试中…(启动于 {{ st.start }})
{% elif st and st.done %}
{% if '已登录' in st.output or '登录成功' in st.output %}
通过
{% else %}
失败
{% endif %}
输出{{ st.output }} |
{% if r.has_recipe %} {% elif r.configured and r.probe_source %} {% endif %} {% if r.configured %} {% endif %} |