优先级:命令行参数 > 环境变量 > 默认值
| 参数 | 环境变量 | 默认值 |
|---|---|---|
| ------ | --------- | -------- |
--topic-id | JIKE_TOPIC_ID | (必填,无默认值) |
--base-dir | JIKE_DIGEST_BASE_DIR | /Users/victor/Desktop/resource/daily-info/jike |
若 topic-id 未提供且无环境变量,报错并提示用户。
常用 Topic ID:
| Topic | ID |
|---|---|
| ------- | ---- |
| AI 探索站 | 63579abb6724cc583b9bba9a |
| 产品经理的日常 | 563a2995306dab1300a32227 |
| 大产品小细节 | 57079a1526b0ab12002c29da |
| 副业探索小分队 | 65544021a2935ec6b005bcd2 |
| 薅羊毛小分队 | 5523d164e4b0466c6563cd30 |
| 科技圈大小事 | 597ae4ac096cde0012cf6c06 |
输出路径:{BASE_DIR}/{topic_id}/{YYYYMMDD}/jike-{topic_name}-{YYYYMMDD}.md
TOPIC_ID 和 BASE_DIR{BASE_DIR}/{topic_id}/{YYYYMMDD}/ 已存在则清空与当前 topic 相关文件mkdir -p {BASE_DIR}/{topic_id}/{YYYYMMDD}autocli jike topic {topic_id} --limit 50 -f json | python3 {SKILL_DIR}/scripts/filter_recent.py
脚本将统计信息输出到 stderr,过滤后的 JSON 数组输出到 stdout。也可单独调用:
# 自定义时间窗口(如 48 小时)
python3 {SKILL_DIR}/scripts/filter_recent.py --input posts.json --hours 48
# 保存过滤结果到文件
autocli jike topic {topic_id} --limit 50 -f json | python3 {SKILL_DIR}/scripts/filter_recent.py --output filtered.json
将分析结果按模板写入输出文件,使用简体中文撰写,保持即刻社区轻松有态度的风格。
共 1 个版本