微信公众号文章抓取
Fetch complete content from WeChat public account articles (mp.weixin.qq.com). Use when extracting content from WeChat official account links, especially whe...
Latest: v1.0.0
初始版本:支持抓取微信公众号(mp.weixin.qq.com)完整文章内容,解决默认web fetch获取内容不完整的问题
Full description
Fetch complete content from WeChat public account articles (mp.weixin.qq.com). Use when extracting content from WeChat official account links, especially when default web fetch gets incomplete content.
WeChat Web Fetch Skill
Features
- Specialized for WeChat public account articles (mp.weixin.qq.com)
- Simulates browser request with proper headers to bypass login restrictions for public articles
- Extracts clean content and converts to Markdown format
- Based on Readability for accurate content extraction
Requirements
- Python 3.7+
- httpx
- readability-lxml
Usage
{baseDir}/scripts/weixin_fetch.py <url>
Output
Returns JSON with:
url: Original URLfinal_url: Final URL after redirectstitle: Article titleauthor: Article author (if found)content: Extracted content in Markdownlength: Content lengthtruncated: Whether content was truncated
Examples
# Fetch a WeChat article
{baseDir}/scripts/weixin_fetch.py https://mp.weixin.qq.com/s/2o2s3owEDkZziyD0UCeq2w
