web-to-markdown
Featured网页转 Markdown - 抓取任意网页正文并转成干净的 Markdown,便于阅读/收藏/二次创作
Data & Documents 1,748 stars
417 forks Updated 4 days ago MIT
Install
Quality Score: 94/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# 网页转 Markdown
把用户给的网页链接抓下来,提取正文,转成干净的 Markdown,方便保存、总结或二次创作。
## 能���概述
- **正文提取**:去掉导航/广告/页脚,只留主体内容
- **转 Markdown**:标题、列表、链接��代码块保留结构
- **保存**:可写入本地 .md 文件
## 操作方式
用 Bash 工具。首选 jina.ai 的免费 reader(无需依赖,最省事):
```bash
# 最简:jina reader 直接返回干净 Markdown(在链接前加 https://r.jina.ai/)
curl -s "https://r.jina.ai/https://example.com/article" -o article.md
echo "已保存 -> article.md"; head -40 article.md
```
离线或 jina 不可用时,用 Python 本地转换:
```bash
python -c "import markdownify,requests" 2>/dev/null || pip install -q markdownify requests beautifulsoup4
python - <<'PY'
import requests, re
from bs4 import BeautifulSoup
from markdownify import markdownify as md
url = "https://example.com/article"
html = requests.get(url, timeout=15, headers={"User-Agent":"Mozilla/5.0"}).text
soup = BeautifulSoup(html, "html.parser")
for t in soup(["script","style","nav","footer","aside"]): t.decompose()
body = soup.find("article") or soup.find("main") or soup.body
out = md(str(body), heading_style="ATX")
out = re.sub(r"\n{3,}", "\n\n", out).strip()
open("article.md","w",encoding="utf-8").write(out)
print("已保存 -> article.md,", len(out), "字")
PY
```
## 使用建议
- 先问用户要不要保存到文件、文件名
- 微信公众号/知乎等需要登录的页面可能抓取受限,如失败如实告知
- 抓取后可顺手做"总结要点",结合 china-search / deepseek-helper 技能
Details
- Author
- dongsheng123132
- Repository
- dongsheng123132/u-claw
- Created
- 6 months ago
- Last Updated
- 4 days ago
- Language
- JavaScript
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Featured
web-article-extractor
使用隔离的 Chrome DevTools MCP 从博客、新闻、公众号等网页提取正文,返回结构化内容,或保存 Markdown 和远程图片。用户要求提取文章、抓取网页正文、保存为 Markdown、下载文章图片或排查正文选择器时调用。
408 Updated 4 days ago
dongbeixiaohuo Data & Documents Solid
baoyu-url-to-markdown
技术写作员与内容创作者在沉淀网页资料时,当需要抓取包含JS动态渲染或需登录的复杂页面,使用此技能一键将其转换为干净的Markdown格式,自动提取正文与元数据,轻松构建本地知识库,让网页内容归档效率翻倍!
6,537 Updated today
anbeime AI & Automation Listed
download-wechat-articles
把用户自己名下微信公众号的全部「已发表」历史文章批量下载成干净 Markdown(带 frontmatter,图片保留外链),供备份或给 AI 当写作风格采样。用户只需在已登录的公众号后台网页里粘一段控制台脚本导出文章清单,其余由本地脚本完成,全程无需手动查找 token/cookie。触发词:下载我的公众号文章、备份公众号、导出公众号文章、把我的公众号存到本地、抓取我名下公众号、archive my wechat articles。
0 Updated 1 months ago
YijiaDuan