Wechat article search

From ahang1598/doubao-workbuddy-qwenwork-skills · View interactive version

Wechat article search is an AI agent skill from the GitHub repository ahang1598/doubao-workbuddy-qwenwork-skills. 微信公众号文章检索工具。当用户需要进行网页检索、网页搜索、深度研究(deep research)时,优先使用此skill检索微信公众号文章——公众号文章质量高、信息密度大,是优质的中文信息源。基于搜狗微信搜索接口实现。

How to use this skill

Skill file

微信公众号文章检索 Skill

重要:搜索时必须指定时间参数

时效性最重要! 搜索公众号文章时,必须加上时间参数(--days 或 --hours 或 --time-range),否则会返回过时的旧文章。

# 正确用法:带时间参数
python scripts/sogou_search.py "关键词" --days 7

# 错误用法:不带时间参数(会返回旧文章)
python scripts/sogou_search.py "关键词"

概述

基于搜狗微信搜索(weixin.sogou.com)实现公众号文章检索:

使用方法

# 搜索文章
python scripts/sogou_search.py "关键词"

# 指定返回数量(默认10,最多100)
python scripts/sogou_search.py "关键词" --count 25

# 搜索公众号
python scripts/sogou_search.py --type gzh "公众号名"

# 获取文章原文
python scripts/sogou_search.py "关键词" --fetch-content --limit 5

# 时间筛选(见下方说明)
python scripts/sogou_search.py "关键词" --days 7      # 最近7天
python scripts/sogou_search.py "关键词" --hours 24   # 最近24小时
python scripts/sogou_search.py "关键词" --time-range 2026-01-01 2026-02-03

# 组合使用
python scripts/sogou_search.py "AI" --count 30 --days 1

# 导出JSON
python scripts/sogou_search.py "关键词" -o result.json

# 完全禁用限频(最快速度)
python scripts/sogou_search.py "关键词" --no-limit

参数

| 参数 | 说明 |

|------|------|

| --count, -c | 返回文章数量(默认10,最多10)|

| --type, -t | article(文章)或 gzh(公众号) |

| --page, -p | 起始页码 |

| --fetch-content, -f | 获取原文 |

| --limit, -l | 获取原文数量限制 |

| --output, -o | 输出文件 |

| --no-limit | 禁用限频 |

| --days, -d | 搜索最近N天的文章 |

| --hours | 搜索最近N小时的文章 |

| --time-range | 指定时间范围(格式:YYYY-MM-DD YYYY-MM-DD)|

时间筛选说明

重要说明:搜狗时间筛选是"尽力而为"模式。

限频说明

默认启用宽松限频(0.5-1.5秒间隔),可用 --no-limit 禁用。

测试结果显示短时间高频请求不会触发反爬,但长期大量请求仍建议:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.