read-url
Extract clean, complete markdown from any web page — articles, docs, READMEs, blog/social posts, academic papers. Also use as a fallback when curl returns…
by archibate★ 42 GitHub stars
Install read-url in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Read URL
Work down this fallback ladder in order. Each step is only tried when prior steps don't apply or fail.
Fallback ladder
- Raw
.md/.txt/ plain-text URL →curl -sL <url>(already clean, no HTML to strip) - Known site → use the dedicated CLI/API from the routing table below
- Docs page → try
curl -sL <url>.md. Mintlify and other docs platforms serve clean markdown on the.mdroute — if the response istext/markdown, you're done; otherwise fall through - Blog / newsletter / multi-post index → try RSS first:
curl -sL <url>/feed(also/rss,/feed.xml,/atom.xml,/index.xml). Most static-site generators and CMS platforms expose one; RSS gives you clean<content:encoded>or<summary>bodies without chrome - Generic site (articles, docs, tech blogs, unknown) →
npx defuddle parse <url> --markdown— seereferences/defuddle.md - JS-rendered page (defuddle returns empty / skeleton-only content) →
/agent-browserskill - Cloudflare / anti-bot protection (Turnstile, blocked responses, 403/503) →
/scraplingskill - Still blocked and genuinely need this page → ask the user to open it and paste the content, or offer the
/chrome-cdpskill (requires explicit user approval first). Otherwise, give up and report the failure.
Routing table
Step 2 — URLs matching a known domain:
| Domain / Pattern | Preferred path |
|---|---|
github.com / gist.github.com |
File via raw.githubusercontent.com; issue/PR via gh issue view / gh pr view; search: api.github.com/search/{code,issues,repositories}?q= (anonymous) — see references/github.md |
x.com / twitter.com / t.co |
curl -sL https://api.fxtwitter.com/<user>/status/<id> | jq |
bilibili.com |
bilibili_api Python library (uv run --with bilibili-api-python): sync(video.Video(bvid="BV...").get_info()) for title/description; comment module for comments |
youtube.com / youtu.be |
yt-dlp --dump-json --skip-download for title/description/metadata; yt-dlp --write-auto-sub --sub-lang en --skip-download for transcript |
arxiv.org / ssrn.com |
/jina-ai skill |
mp.weixin.qq.com (微信公众号) |
/scrapling skill — scrapling extract get <url> works without a browser |
www.cnblogs.com (博客园) |
Plain defuddle works — server-rendered HTML with the article body inline. For a user's post index: curl -sL 'https://www.cnblogs.com/<user>/rss' (Atom feed) |
blog.csdn.net (CSDN) |
/scrapling skill — plain curl returns a JS-skeleton (content is JS-loaded) and defuddle hits 404 anti-bot. For a summary-only index: curl -sL 'https://blog.csdn.net/<user>/rss/list' returns RSS with 摘要 (not full bodies) |
zhihu.com / zhuanlan.zhihu.com (知乎) |
scripts/fetch_zhihu.py <url> — see references/zhihu.md |
juejin.cn (掘金) |
/scrapling skill — Nuxt SPA; escalate to /chrome-cdp if stealthy-fetch returns only shell |
segmentfault.com (思否) |
/scrapling skill — custom HTTP 468 anti-bot; escalate to /chrome-cdp if stealthy-fetch fails |
weibo.com (微博) |
/scrapling skill — JS-rendered status pages; escalate to /chrome-cdp if stealthy-fetch returns only chrome |
xiaohongshu.com (小红书) |
/scrapling skill — aggressive anti-bot; escalate to /chrome-cdp if stealthy-fetch fails |
douban.com / movie.douban.com (豆瓣) |
Desktop returns an anti-bot 载入中… shell. Use the mobile host with an iPhone UA: curl -sL -A 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1' 'https://m.douban.com/movie/subject/<id>/' | defuddle parse --markdown — full server-rendered body (评分, 简介, 影评). Fall back to /scrapling if blocked |
y.qq.com (QQ 音乐) |
Hard — stealthy-fetch returns the homepage shell instead of song data. Use /chrome-cdp with the user's logged-in session, or ask them to paste |
music.163.com (网易云音乐) |
Plain defuddle for basic info — <title> has song + artist. For lyrics / comments / playlists use the community-maintained NeteaseCloudMusicApi (self-hosted Node proxy over the internal API) |
wallstreetcn.com (华尔街见闻) |
Plain defuddle works — server-rendered with _articleBody_… class; no auth needed for public articles |
www.v2ex.com (V2EX) |
curl -sL 'https://www.v2ex.com/api/topics/show.json?id=<id>' | jq — returns topic + full content; api/replies/show.json?topic_id=<id> for replies |
gitee.com |
Known file path: curl -sL 'https://gitee.com/<owner>/<repo>/raw/<ref>/<path>'. Repo metadata: curl -sL 'https://gitee.com/api/v5/repos/<owner>/<repo>' | jq. Shape mirrors GitHub |
instagram.com |
instaloader CLI |
reddit.com |
Hard — .json endpoints are blocked since the 2023 API changes, and scrapling's stealthy-fetch gets a captcha page. Use the official OAuth API (PRAW / snoowrap) with credentials, or /chrome-cdp with the user's logged-in session |
stackoverflow.com / `* |
Allowed tools
Tools this skill is permitted to call.
- 01
Bash(npx defuddle*:*) - 02
Bash(pnpx defuddle*:*) - 03
Bash(defuddle*:*) - 04
Bash(curl:*) - 05
Bash(jq:*) - 06
Bash(rg:*) - 07
Bash(npm view:*) - 08
Bash(pnpm view:*) - 09
Bash(gh repo view:*) - 10
Bash(gh gist view:*) - 11
Bash(gh issue view:*) - 12
Bash(gh pr view:*) - 13
Bash(yt-dlp:*) - 14
Bash(instaloader:*) - 15
Bash(*html-select*:*) - 16
Bash(*html-unescape*:*) - 17
WebFetch
Bundled files
- references/defuddle.md
- references/github.md
- references/html-selector.md
- references/huggingface.md
- references/mediawiki.md
- references/stackexchange.md
- references/zhihu.md
- scripts/fetch_zhihu.py
- scripts/html-select.py
- scripts/html-unescape.py
FAQ
What does the read-url skill do?
Extract clean, complete markdown from any web page — articles, docs, READMEs, blog/social posts, academic papers. Also use as a fallback when curl returns noisy HTML or WebFetch returns truncated, summarized, or refused results.
How do I install the read-url skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the read-url skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…