Web Content Extraction
SkillWeb & browsingExtracts main body content from web pages. Supports a three-level fallback strategy: Jina Reader / Scrapling+html2text / web_fetch, automatically returning clean Markdown-formatted body text while preserving headings, links, image URLs, and list structure. Can read WeChat Official Account articles (
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Web Content Extraction skill
What this skill tells your AI
The instructions your AI receives, as published by sunyifeisb-art/legalwork in skills/web-content-fetcher/SKILL.md and read by ahel’s review.
能力说明
给一个 URL,返回干净的 Markdown 格式正文,保留:
- 标题层级(# ## ###)
- 超链接(文字)
- 图片()
- 列表、代码块、引用块
提取策略(三级降级)
URL
↓
1. Jina Reader(首选)
web_fetch("https://r.jina.ai/<url>", maxChars=30000)
优点:快(~1.5s),格式干净
限制:200次/天免费配额
失败场景:微信公众号(403)、部分国内平台
↓
2. Scrapling + html2text(Jina 超限或失败时)
exec: python3 scripts/fetch.py <url> 30000
优点:无限制,效果和 Jina 相当,能读微信公众号
适合:mp.weixin.qq.com、Substack、Medium 等反爬平台
↓
3. web_fetch 直接抓(静态页面兜底)
web_fetch(url, maxChars=30000)
适合:GitHub README、普通静态博客、技术文档
域名快捷路由
直接跳过 Jina,节省配额:
mp.weixin.qq.com→ 直接用 Scraplingzhuanlan.zhihu.com、juejin.cn、csdn.net→ 优先 Scrapling
使用方式
自动模式(推荐)
直接告诉我要读取的 URL,我会自动选择合适的方案:
帮我读取这篇文章:https://example.com/article
手动指定方案
用 Scrapling 读取:https://mp.weixin.qq.com/s/xxx
安装依赖
推荐使用 skill 目录内的虚拟环境:
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
脚本路径
scripts/fetch.py — Scrapling + html2text 提取脚本
调用方式:
.venv/bin/python scripts/fetch.py <url> [max_chars]
防死循环规则
同一个 URL 累计失败 2 次就放弃,记录为"无法提取",不重复重试。
Legalwork 执行增强
工作区流程
- 先判断用户要的是“正文阅读/结构化抽取”还是“登录态/动态交互”。前者使用本 Skill,后者升级到 web-access。
- 提取正文后,立即按用户任务转成可用成果:摘要、证据摘录、链接清单、法规/案例来源表、引用材料或后续写作素材。
- 如果页面来自小红书、微信公众号、登录页或动态站点,记录 fetch 失败原因,并建议或自动切换浏览器访问路线。
- 对法律任务,保留标题、发布时间、作者、URL、关键原文片段和提取时间,方便写入证据或研究底稿。
交付物
输出应包含:页面基本信息、正文摘要、与任务相关的关键摘录、可继续使用的 Markdown 正文或保存路径、失败/不完整提取的说明。不要只把原始网页文本甩给用户。
质量检查
- 是否确认页面内容与用户给定 URL 对应?
- 是否说明动态/登录/反爬导致的缺失?
- 是否保留可追溯 URL 和提取时间?
- 是否把正文转化为用户当前法律或软件任务可直接使用的材料?
Signals
- GitHub stars
- 57
- Forks
- 9
- Last commit
- Sep 2026
ahel review
K1binfo
installs-packagesK1binfo
installs-packages (in README.md)
Automated review, not a security audit. Ruleset v1+k2.
Advanced
- Catalog kind
- skill
- Gateway key
github-com-sunyifeisb-art-legalwork-skill-web-conten-0y23wf4- Source
- github.com/sunyifeisb-art/legalwork