
Weixin Reader Plus
- 8 installs
- 33 repo stars
- Updated April 26, 2026
- bighardperson/computer-science-skills-collection
Weixin Reader Plus is a Claude skill that reads a WeChat public-account article from its link and extracts the title, account name, and body text.
About
Weixin Reader Plus reads the content of a WeChat public-account article from its mp.weixin.qq.com link. A bundled Python script fetches the page using a mobile User-Agent to mimic the WeChat in-app browser and follows redirects. It outputs the article title, public-account name, and body text. A developer uses it to pull a WeChat article's text into the agent for reading or further processing.
- Reads WeChat public-account article content from an mp.weixin.qq.com link
- Uses a mobile User-Agent to mimic the WeChat in-app browser and follows redirects
- Outputs title, account name, and body text via a bundled Python script
Weixin Reader Plus by the numbers
- 8 all-time installs (skills.sh)
- Ranked #1,522 of 2,719 Automation & Workflows skills by installs in the Skillselion catalog
- Data as of Jul 30, 2026 (Skillselion catalog sync)
weixin-reader-plus capabilities & compatibility
Free; needs only Python with httpx and beautifulsoup4, no API key.
- Capabilities
- content extraction · web scraping
- Use cases
- web scraping · research
- Pricing
- Free
What weixin-reader-plus says it does
读取微信公众号文章内容。
使用移动端 User-Agent 模拟微信内置浏览器访问
部分文章可能需要验证码,无法直接读取
npx skills add https://github.com/bighardperson/computer-science-skills-collection --skill weixin-reader-plusAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 8 |
|---|---|
| repo stars | ★ 33 |
| Last updated | April 26, 2026 |
| Repository | bighardperson/computer-science-skills-collection ↗ |
What it does
Read a WeChat public-account article from its link and extract title, account name, and body text.
Who is it for?
Reading a single WeChat public-account article's text from its URL
Skip if: Articles that require a captcha, which it cannot read directly
When should I use this skill?
The user sends an mp.weixin.qq.com link and asks to read the article content
What you get
The article's title, account name, and body text as plain output
- article title
- public-account name
- article body text
By the numbers
- 3 output fields (title, account, body)
- 2 Python dependencies
Files
weixin_reader
读取微信公众号文章内容。
触发条件
当用户提供微信公众号文章链接(mp.weixin.qq.com)并要求阅读、读取、查看文章内容时使用此 skill。
触发关键词:
- "读这篇微信文章"
- "看一下这个公众号文章"
- "帮我读取微信文章"
- 用户发送 mp.weixin.qq.com 链接
使用方法
python3 ~/.claude/skills/weixin_reader/weixin_reader.py "<微信文章URL>"示例
python3 ~/.claude/skills/weixin_reader/weixin_reader.py "https://mp.weixin.qq.com/s?__biz=xxx&mid=xxx"输出格式
标题: 文章标题
公众号: 公众号名称
--- 正文内容 ---
文章正文内容...依赖
- httpx
- beautifulsoup4
如未安装,运行:
pip install httpx beautifulsoup4注意事项
1. 部分文章可能需要验证码,无法直接读取 2. 使用移动端 User-Agent 模拟微信内置浏览器访问 3. 支持自动跟随重定向
{
"ownerId": "kn7bxnrjdwh0cg4w8y0bxn69e183265v",
"slug": "weixin-reader-plus",
"version": "1.0.0",
"publishedAt": 1773751820955
}{
"version": 1,
"registry": "https://clawhub.ai",
"slug": "weixin-reader-plus",
"installedVersion": "1.0.0",
"installedAt": 1776068713625
}
#!/usr/bin/env python3
"""
微信公众号文章读取工具
用法: python weixin_reader.py <url>
"""
import sys
import httpx
from bs4 import BeautifulSoup
def read_wechat_article(url: str) -> dict:
"""
读取微信公众号文章内容
Args:
url: 微信公众号文章链接
Returns:
dict: 包含 title, account, content 的字典
"""
headers = {
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.38(0x18002629) NetType/WIFI Language/zh_CN",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Language": "zh-CN,zh;q=0.9",
}
result = {"title": "", "account": "", "content": "", "error": None}
try:
with httpx.Client(follow_redirects=True, timeout=30) as client:
resp = client.get(url, headers=headers)
soup = BeautifulSoup(resp.text, 'html.parser')
# 获取标题
title_elem = soup.find('h1', class_='rich_media_title') or soup.find('h2', class_='rich_media_title')
if title_elem:
result["title"] = title_elem.get_text(strip=True)
# 获取公众号名称
account_elem = soup.find('a', id='js_name') or soup.find('span', class_='rich_media_meta_nickname')
if account_elem:
result["account"] = account_elem.get_text(strip=True)
# 获取正文内容
content_elem = soup.find('div', id='js_content') or soup.find('div', class_='rich_media_content')
if content_elem:
result["content"] = content_elem.get_text(separator='\n', strip=True)
else:
# 检查是否需要验证
if soup.find(text=lambda t: t and '验证' in t):
result["error"] = "文章需要验证码,无法直接访问"
else:
result["error"] = "无法解析文章内容"
except Exception as e:
result["error"] = str(e)
return result
def main():
if len(sys.argv) < 2:
print("用法: python weixin_reader.py <url>")
sys.exit(1)
url = sys.argv[1]
result = read_wechat_article(url)
if result["error"]:
print(f"错误: {result['error']}")
sys.exit(1)
if result["title"]:
print(f"标题: {result['title']}")
if result["account"]:
print(f"公众号: {result['account']}")
if result["content"]:
print(f"\n--- 正文内容 ---\n")
print(result["content"])
if __name__ == "__main__":
main()
Related skills
FAQ
What triggers Weixin Reader Plus?
It is used when the user provides a WeChat public-account article link (mp.weixin.qq.com) and asks to read, fetch, or view the article content, including phrases like 'read this WeChat article'.
Are there limits?
Some articles require a captcha and cannot be read directly. It uses a mobile User-Agent to mimic the WeChat in-app browser and supports automatic redirect following.