Skip to main content

article-image-downloader

Download all images from an article URL to local directory. Useful for translation workflows where you need to preserve original images. Supports Substack, Medium, and most web articles.

跳到安装

来源信息

仓库
frxiaobei/frxiaobei-skills
最近来源活动
2026年3月19日 05:36
检测到的 SKILL.md 语言
英语
星标
27
分支
3

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
article-image-downloader
description
Download all images from an article URL to local directory. Useful for translation workflows where you need to preserve original images. Supports Substack, Medium, and most web articles.
# Article Image Downloader Downloads all images from a web article to a local directory. ## When to Use - Translating foreign articles and need to preserve original images - Archiving web content with images - Preparing content for WeChat/other platforms that need local images ## Script ```bash # Usage bash ${SKILL_DIR}/scripts/download-images.sh <article_url> [output_dir] # Examples bash ${SKILL_DIR}/scripts/download-images.sh "https://example.com/article" ./imgs bash ${SKILL_DIR}/scripts/download-images.sh "https://www.citriniresearch.com/p/2028gic" ``` ## Parameters | Parameter | Required | Default | Description | |-----------|----------|---------|-------------| | `article_url` | Yes | - | URL of the article to fetch | | `output_dir` | No | `./imgs` | Directory to save images | ## Output - Downloads all images to `output_dir/` - Creates `output_dir/manifest.json` with image metadata - Prints summary of downloaded images ## How It Works 1. Uses Jina Reader API (`r.jina.ai`) to fetch article content as markdown 2. Extracts all image URLs from markdown (`![...](url)` pattern) 3. Downloads each image with proper filename 4. Generates manifest with original URLs and local paths ## Example Output ``` Downloaded 10 images to ./imgs/ manifest.json: { "source": "https://example.com/article", "images": [ {"original": "https://...", "local": "img01.png"}, {"original": "https://...", "local": "img02.jpeg"}, ... ] } ``` ## Integration with WeChat Publishing After downloading images, use local paths in your HTML: ```html <img src="imgs/img01.png" alt="..."> ``` The `baoyu-post-to-wechat` skill will automatically upload local images to WeChat's media library.
在 GitHub 查看