Command Palette

Search for a command to run...

Back to skills
skill № 22025

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…

FreeRuns bundled scripts
archibateby 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
Sign up freeI already have an account

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

  1. Raw .md / .txt / plain-text URL → curl -sL <url> (already clean, no HTML to strip)
  2. Known site → use the dedicated CLI/API from the routing table below
  3. Docs page → try curl -sL <url>.md. Mintlify and other docs platforms serve clean markdown on the .md route — if the response is text/markdown, you're done; otherwise fall through
  4. 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
  5. Generic site (articles, docs, tech blogs, unknown) → npx defuddle parse <url> --markdown — see references/defuddle.md
  6. JS-rendered page (defuddle returns empty / skeleton-only content) → /agent-browser skill
  7. Cloudflare / anti-bot protection (Turnstile, blocked responses, 403/503) → /scrapling skill
  8. Still blocked and genuinely need this page → ask the user to open it and paste the content, or offer the /chrome-cdp skill (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 / `*
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

  1. 01Bash(npx defuddle*:*)
  2. 02Bash(pnpx defuddle*:*)
  3. 03Bash(defuddle*:*)
  4. 04Bash(curl:*)
  5. 05Bash(jq:*)
  6. 06Bash(rg:*)
  7. 07Bash(npm view:*)
  8. 08Bash(pnpm view:*)
  9. 09Bash(gh repo view:*)
  10. 10Bash(gh gist view:*)
  11. 11Bash(gh issue view:*)
  12. 12Bash(gh pr view:*)
  13. 13Bash(yt-dlp:*)
  14. 14Bash(instaloader:*)
  15. 15Bash(*html-select*:*)
  16. 16Bash(*html-unescape*:*)
  17. 17WebFetch

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

Compare read-url with