sreweekly-digest: 数据目录迁移至 ~/Workspace/nexus/sreweekly/(SKILL.md + 脚本同步)

This commit is contained in:
2026-09-10 20:05:46 +08:00
parent 5ad2a37fb2
commit 3452c0af5f
2 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ SRE Weekly 抓取与文章提取脚本
设计给 n8n 定时任务调用,通过不同参数驱动,脚本自身不发送邮件。
目录结构(默认工作目录 ~/Workspace/nexus/Hermes/xingzhi/sreweekly/):
目录结构(默认工作目录 ~/Workspace/nexus/sreweekly/):
sreweekly/
├── manifest.json # 状态记录(每期: html 是否保存、文章是否提取、文章数)
├── html/<id>-<日期>.html # 每期原始 HTML(feed 的 content:encoded 原样保存)
@@ -28,7 +28,7 @@ SRE Weekly 抓取与文章提取脚本
选项:
--feed URL RSS 地址(默认 https://sreweekly.com/feed/)
--dir PATH 工作目录(默认 ~/Workspace/nexus/Hermes/xingzhi/sreweekly/)
--dir PATH 工作目录(默认 ~/Workspace/nexus/sreweekly/)
--force 重新提取已提取过的期(覆盖旧文件)
"""
from html.parser import HTMLParser
@@ -40,7 +40,7 @@ except ImportError:
sys.exit("缺少依赖: 请先执行 pip3 install feedparser")
DEFAULT_FEED = "https://sreweekly.com/feed/"
DEFAULT_DIR = os.path.expanduser("~/Workspace/nexus/Hermes/xingzhi/sreweekly")
DEFAULT_DIR = os.path.expanduser("~/Workspace/nexus/sreweekly")
# ---------------------------------------------------------------- manifest