alexxiong

Web Fetcher

データ分析v0.1.1
作者:alexxiong更新日 2026-05-17web-fetcher@clawhub_alexxxiong/web-fetcher
Web スクレイピング#Feishu#WeChat

AlphaMoatによると、2026-09時点でWeb Fetcherのダウンロード数は1,609、スター数は1で、AIスキル全体5,078件中4,697位、データ分析では399件中369位です。

インストール数
104
ダウンロード数
1609
スター数
1
総合順位
#4,697
全体の上位 93% · データ分析の上位 93%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗401431--
SkillHub ↗10416091—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

記事をMarkdownとして保存する方法、メディアのダウンロード、URL一覧の一括処理、サイト別の取得方式を説明します。出力先、画質、方式、セレクター、画像の省略などを指定できます。ブラウザーCookieを再利用する方式もあるため、ログインが必要なコンテンツやファイルを扱う前に、許可、プライバシー、保存先を確認し、取得内容を点検してください。 信頼できる URL を使い、ネットワークアクセスと出力先を制限してください。

資料公開日 2026-10-29

できること

  • 公開Web記事をローカルのMarkdownファイルとして保存する。
  • URL一覧を取得するか、対応プラットフォームから動画をダウンロードする。
  • サイトと目的に合わせて方式、画質、メディア処理を選ぶ。

使う場面

  • Web記事や動画をローカルに保存したいとき。
  • ログイン状態やCookieが必要なコンテンツを扱う前に、アカウントの許可とプライバシーリスクを確認するとき。
  • URLと保存先を確認してから一括ダウンロードするとき。

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

信頼できるURLから記事を取得してMarkdownで保存し、作成されるファイルを列挙してください。
この動画をダウンロードする前に、利用するアカウントCookie、保存場所、発生する外部リクエストを説明してください。

月次の推移

ダウンロード数1609
349102617022026-03 · ダウンロード数 4422026-05 · ダウンロード数 9402026-06 · ダウンロード数 10622026-07 · ダウンロード数 12652026-08 · ダウンロード数 13502026-09 · ダウンロード数 160926-0326-09
スター数1
0112026-03 · スター数 -2026-05 · スター数 -2026-06 · スター数 -2026-07 · スター数 -2026-08 · スター数 12026-09 · スター数 126-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-091609—1
2026-081350+6.7%1
2026-071265+19.1%-
2026-061062+13.0%-
2026-05940—-
2026-03442—-

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

4.6 KB・ClawHub v0.1.1
---
name: web-fetcher
description: "Smart web content fetcher - articles and videos from WeChat, Feishu, Bilibili, Zhihu, Toutiao, YouTube, etc. Triggers: '抓取文章', '下载网页', '保存文章', 'fetch URL', '下载视频', '抓取飞书文档', '抓取微信文章', '把这个链接内容保存下来', '下载B站视频', 'download video', 'scrape article'."
version: 0.1.1
license: Complete terms in LICENSE
---

# Web Fetcher

Smart web content fetcher for Claude Code. Automatically detects platform and uses the best strategy to fetch articles or download videos.
すべて表示(全 126 行)

## Quick Start

```bash
# Fetch an article
python3 {SKILL_DIR}/fetcher.py "URL" -o ~/docs/

# Download a video
python3 {SKILL_DIR}/fetcher.py "https://b23.tv/xxx" -o ~/videos/

# Batch fetch from file
python3 {SKILL_DIR}/fetcher.py --urls-file urls.txt -o ~/docs/
```

## Install Dependencies

Install only what you need — dependencies are checked at runtime:

| Dependency | Purpose | Install |
|-----------|---------|---------|
| scrapling | Article fetching (HTTP + browser) | `pip install scrapling` |
| yt-dlp | Video download | `pip install yt-dlp` |
| camoufox | Anti-detection browser (Xiaohongshu, Weibo) | `pip install camoufox && python3 -m camoufox fetch` |
| html2text | HTML to Markdown conversion | `pip install html2text` |

## Smart Routing

The fetcher automatically detects the platform from the URL:

| Platform | Method | Notes |
|----------|--------|-------|
| mp.weixin.qq.com | scrapling | Extracts `data-src` images, handles SVG placeholders |
| *.feishu.cn | Virtual scroll | Collects all blocks via scrolling, downloads images with cookies |
| zhuanlan.zhihu.com | scrapling | `.Post-RichText` selector |
| www.zhihu.com | scrapling | `.RichContent` selector |
| www.toutiao.com | scrapling | Handles `toutiaoimg.com` base64 placeholders |
| www.xiaohongshu.com | camoufox | Anti-bot protection requires stealth browser |
| www.weibo.com | camoufox | Anti-bot protection requires stealth browser |
| bilibili.com / b23.tv | yt-dlp | Video download, supports quality selection |
| youtube.com / youtu.be | yt-dlp | Video download |
| douyin.com | yt-dlp | Video download |
| Unknown URLs | scrapling | Generic fetch with fallback tiers |

## CLI Reference

```
python3 {SKILL_DIR}/fetcher.py [URL] [OPTIONS]

Arguments:
  url                    URL to fetch

Options:
  -o, --output DIR       Output directory (default: current)
  -q, --quality N        Video quality, e.g. 1080, 720 (default: 1080)
  --method METHOD        Force method: scrapling, camoufox, ytdlp, feishu
  --selector CSS         Force CSS selector for content extraction
  --urls-file FILE       File with URLs (one per line, # for comments)
  --audio-only           Extract audio only (video downloads)
  --no-images            Skip image download (articles)
  --cookies-browser NAME Browser for cookies (e.g., chrome, firefox)
```

## Platform Notes

### WeChat (mp.weixin.qq.com)
- Images use `data-src` attribute with `mmbiz.qpic.cn` URLs
- Visible `<img>` tags contain SVG placeholders (lazy loading)
- Image download requires `Referer: https://mp.weixin.qq.com/` header
- Scrapling GET usually works; no browser needed

### Feishu (*.feishu.cn)
- Uses virtual scroll — content blocks are rendered on-demand
- The fetcher scrolls through the entire document, collecting `[data-block-id]` elements
- Images require authenticated fetch (cookies), downloaded via browser's fetch API
- May show "Unable to print" artifacts which are auto-cleaned

### Bilibili
- Short links (b23.tv) are auto-resolved
- For premium/member content, use `--cookies-browser chrome`
- Default quality is 1080p, adjustable with `-q`

## Troubleshooting

| Problem | Solution |
|---------|----------|
| `scrapling not found` | `pip install scrapling` |
| `yt-dlp not found` | `pip install yt-dlp` |
| Article content too short | Try `--method camoufox` for JS-heavy pages |
| Feishu returns login page | The doc may require authentication |
| Bilibili 403 | Use `--cookies-browser chrome` |
| Image download fails | Check network; WeChat images need Referer header (auto-handled) |

## Manual Usage

When the CLI doesn't fit your needs, use the modules directly:

```python
from lib.router import route, check_dependency
from lib.article import fetch_article
from lib.video import fetch_video
from lib.feishu import fetch_feishu

# Route a URL
r = route("https://mp.weixin.qq.com/s/xxx")
# {'type': 'article', 'method': 'scrapling', 'selector': '#js_content', 'post': 'wx_images'}

# Fetch article
fetch_article(url, output_dir="/tmp/out", route_config=r)

# Download video
fetch_video(url, output_dir="/tmp/out", quality="720")

# Fetch Feishu doc
fetch_feishu(url, output_dir="/tmp/out")
```

データ分析の人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。