微信公众号文章抓取
触发条件
用户消息中包含 mp.weixin.qq.com 链接时,自动使用此技能抓取文章内容。
使用方法
curl -s "https://down.mptext.top/api/public/v1/download?url=<URL_ENCODED_LINK>&format=markdown"
参数
| 参数 | 说明 | |------|------| | url | 文章链接(需URL编码) | | format | 输出格式:html / markdown / text / json(默认html) |
步骤
- 从用户消息中提取微信文章链接
- 对链接进行 URL 编码
- 调用接口抓取内容(推荐 markdown 格式)
- 提取正文,去除 CSS、导航等噪音
- 为用户生成文章摘要或回答用户关于文章的问题
注意事项
- 此接口无需 API 密钥
- 部分文章可能有字数限制或反爬处理
- 图片链接可能有时效性
- 如抓取失败,可尝试换 format 为 text
Scan to contact