Foreword¶
When collecting assets or backing up web pages, common practices include manually saving images one by one via the browser or writing custom scripts to parse img / srcset attributes, handle lazy loading, and process CDN parameters. However, once a page involves image galleries, login cookies, or duplicate thumbnails, scripts quickly become lengthy and complex. This article introduces the SkillHub community Skill “Web Image Bulk Download” (Coordinates @user_0c7f1934/web-image-downloader, current version 1.4.4), which enables conversational Agents to perform extraction, filtering, downloading, and ZIP packaging following a standardized workflow.
What is this¶
“Web Image Bulk Download · Image Crawling & Packaging” is an Agent Skill maintained by the community publisher user_0c7f1934. It is categorized as data-analysis, sourced from the community, and tagged with requires_api_key=false (no separate API Key configuration required). The Skill’s purpose is to accept any website URL as input, automatically extract and download images from that webpage, organize them by type or heuristic classification, and package them into a ZIP file.
Official Portals:
- SkillHub Page: https://www.skillhub.cn/skills/user_0c7f1934/web-image-downloader
- API Coordinate Page: https://api.skillhub.cn/user_0c7f1934/web-image-downloader
On SkillHub, this Skill has a rating of 100000, 6776 downloads, and 6 installations (data sourced from the SkillHub page display, subject to change over time).
Core Features¶
The following capabilities are derived from the Skill’s bundled SKILL.md and directory documentation, and can be understood by module.
Trigger Method¶
Once installed and enabled, the Agent will select this Skill when the user expresses similar intents, such as:
- “Download web page images,” “Download all images from this website,” “Batch download images”
- “Download images on the webpage,” “Help me download all images from this page”
- “Crawl images,” “Download all webpage images,” “Grab photo gallery,” “Batch save images”
Format & Extraction¶
Supports common formats such as JPG, PNG, GIF, WebP, SVG, AVIF, and HEIC. The workflow involves fetching the HTML first, parsing image links, and performing image collection (gallery/album) recognition.
Filtering & Deduplication¶
- MD5 deduplication: retains only one copy of identical files.
- Perceptual Hash (pHash) deduplication: identifies similar images that have been scaled or cropped.
- Size filtering: configurable minimum/maximum width and height (default minimum side is 100px).
- Ad filtering: performs whole-word matching based on path and filename metadata; the documentation outlines rules for avoiding false positives with short words.
- Quality filtering (v1.4.0): checks for blurriness, color richness, large-area watermarks, etc.; enabled by default with a default minimum quality score of 60.
- Content validation: for HTTP 200 responses that are actually HTML, it uses magic numbers and PIL decoding for validation; non-image content is marked as failed and not written to disk.
Download & Login State¶
- Concurrent downloading: default concurrency is 3, adjustable via parameters.
- Cookie login state: supports Cookie strings or Netscape format Cookie files.
- Resume capability: relies on
session.jsonto restore progress. - Incremental updates: compares existing records to fetch only new URLs.
- Semantic naming: prioritizes using the image’s
alttext.
Classification & Output¶
- “AI Smart Classification”: implemented as an 8-category heuristic analysis (People, Landscape, Product, Screenshot, Icon, Document, Illustration, Other); results are placed in corresponding subdirectories.
- Default organization by format into subdirectories (JPG/, PNG/, etc.), generating
report.jsonand packaging{domain}.zip; the packaging order is report first, then ZIP, to avoid missingreport.jsonin the archive.
Installation & Activation¶
1. Install SkillHub CLI (if not already installed)¶
Check and install the CLI according to the SkillHub official installation documentation:
command -v skillhub && skillhub --version
If not installed, you can execute (full installation, including default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Documentation: https://skillhub.cn/install/skillhub.md
The SkillHub page meta also states: please install web-image-downloader according to the above documentation.
2. Install the Skill to the current Agent’s skills directory¶
During installation, you must use --dir to point to the skills directory recognized by the current client; otherwise, it may default to ./skills/ and not be loaded by the Agent. Common path examples:
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Example installation command (slug based on search/install results):
skillhub install @user_0c7f1934/web-image-downloader --dir ~/.cursor/skills/
After installation, refresh or restart according to your client’s requirements so the Skill is indexed.
3. Prepare Python dependencies (when executing scripts)¶
The scripts within the Skill package depend on the following Python libraries, which need to be installed in the Skill directory or your working environment:
pip install -r requirements.txt
The dependencies listed in SKILL.md are: requests, beautifulsoup4, Pillow, numpy.
Typical Usage¶
State needs directly in conversation¶
The Skill is designed to be driven by natural language. You can provide just a URL or include filtering conditions. Examples from SKILL.md are as follows (original intent, can be spoken as is or slightly rephrased in the Agent):
# Basic Download
Download https://wallhaven.cc/search?q=landscape
# Quality Filter + AI Classification
Download https://example.com/photos, minimum 1920px
# Cookie Login
Download https://weibo.com/u/123456/album, cookie="SUB=xxx"
# Resume
Download https://example.com/gallery, resume
# High Concurrency Fast Download
Download https://example.com/wallpapers, concurrency 8
# Batch: comma-separated multiple sites
Download https://site1.com,https://site2.com,https://site3.com/photos
# Batch from file
Download https://example.com, url-file=urls.txt
# Disable classification or quality filter
Download https://example.com, no-classify, no-quality
The Agent will execute according to the steps described in the Skill: fetching, parsing, gallery recognition, deduplication, ad and quality filtering, concurrent downloading, classification into subdirectories, writing report.json, and creating a ZIP.
Command Line (Skill internal scripts/main.py)¶
If you need to run the script directly on your local machine, the entry point is scripts/main.py within the Skill package (navigate to scripts under the Skill installation directory and execute):
python main.py <url | url1,url2,url3> [options]
Common options (excerpt, consistent with SKILL.md):
# Basic
--output=<path> # Output directory
--min-size=<px> # Minimum size, default 100
--max-size=<px> # Maximum size
--no-gallery # Disable gallery recognition
--incremental # Incremental update
--concurrency=<n> # Concurrency, default 3
# Login & Resume
--cookie="k=v;..." # Cookie string
--cookie-file=<path> # Netscape Cookie file
--resume # Resume
--no-phash # Disable perceptual hash deduplication
# v1.4.0
--url-file=<path> # Read URL list from file
--no-quality # Disable quality filter
--quality-score=<n> # Minimum quality score 0–100, default 60
--no-classify # Disable smart classification
The default save path is Downloads/web-images/[domain]/, which can be overridden in conversation or via --output.
Use Cases & Notes¶
Who it is for
- Design, operations, research, or backup scenarios requiring batch downloading of images from single or multiple public pages.
- Pages with complex structures, image galleries, or numerous CDN variants where you want the Agent to handle processing via the Skill’s defined pipeline.
- Album-type pages that require cookies to view (must provide valid cookies independently and comply with site terms).
Usage Notes
- Compliance & Copyright: Use only for content you have the right to crawl and save; the Skill provides technical capabilities only and does not replace authorization judgment.
- Anti-crawling & Rate: High concurrency may trigger bans; start with the default concurrency of 3 and adjust as needed.
- Meaning of “AI Classification”: The documentation specifies this as a heuristic 8-category system, not a mandatory step calling external large model APIs; if subdirectory organization is not needed, use
no-classify. - Environment: In addition to Skill installation, executing scripts requires local Python and
requirements.txtdependencies; network and pip sources must be resolved independently in sandboxed or offline environments. - Incremental & session: Incremental mode retains
session.jsonfor comparison next time; session files are cleaned up in document order after ZIP packaging to prevent expired sessions from being included in the package.
Conclusion¶
“Web Image Bulk Download” consolidates “Give URL → Filter duplicates & low-quality images → Concurrent fetch → Classify directories + ZIP” into a repeatable Agent workflow, reducing the maintenance cost of hand-written crawlers. If you want to try it in clients like Cursor, you can install it to the corresponding skills directory using skillhub install as described above and prepare the Python dependencies.
Official SkillHub Page: https://www.skillhub.cn/skills/user_0c7f1934/web-image-downloader