Install
openclaw skills install wechat-article-scraper在搜狗微信搜索指定关键词,抓取相关文章(标题、摘要、发布日期、来源公众号),生成PDF报告。触发场景:用户要求"搜索微信文章 关键字 数量"
openclaw skills install wechat-article-scraper通过搜狗微信搜索指定关键词,抓取最新文章,生成带本地PDF的行业报告。
用户说:
cd ~/.openclaw/workspace
python3 ~/.openclaw/workspace/skills/wechat-article-scraper/scripts/wechat_search.py <关键词> [数量]
articles.json⚠️ 重要:summary必须在聊天窗口用当前会话模型生成!
articles.json 中的文章articles_new.json(包含title, text, url, date, source, summary字段)cd ~/.openclaw/workspace
python3 ~/.openclaw/workspace/skills/wechat-article-scraper/scripts/wechat_fetch.py <关键词>
wechat_pages/ 目录下的PDF文件cd ~/.openclaw/workspace
python3 ~/.openclaw/workspace/skills/wechat-article-scraper/scripts/wechat_pdf.py <关键词>
<关键词>_行业动态.pdf报告包含:
articles.jsonwechat_pages/*.pdfarticles_new.json,抓取每篇文章原文保存为PDF<关键词>_行业动态.pdfarticles_new.json,生成带双链接的行业报告PDF# 安装 Python 依赖
pip install playwright requests
# 安装 Playwright 浏览器
playwright install chromium