Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/publisher-skill/claude-skill --skill image-downloader명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | image_downloader |
| description | 图片下载器 - 从网站批量下载图片,支持单张图片、HTML页面、网站全站爬取 |
| metadata | {"type":"custom"} |
网站图片批量下载工具,功能丰富易用。
<img>, <picture>, CSS background-imagefrom skills.image_downloader import ImageDownloader
dl = ImageDownloader(delay=1.0)
# 下载单张图片
dl.download_image('https://example.com/img.jpg', 'images/img.jpg')
# 从网页下载所有图片
downloaded = dl.download_from_url(
'https://example.com/gallery',
'images/gallery/',
max_images=50
)
# 批量下载URL列表
urls = ['https://a.com/1.jpg', 'https://a.com/2.jpg']
dl.download_from_list(urls, 'images/')
# 全站爬取
dl.crawl_and_download(
'https://example.com',
'images/site/',
max_pages=20
)
# 查看摘要
summary = dl.get_summary()
print(f"成功: {summary['downloaded']}")
print(f"失败: {summary['failed']}")
ImageDownloader(headers=None, timeout=30, delay=0.5, max_retries=3)
download_image(url, output_path, skip_if_exists=True, check_duplicate=True) - 下载单张图片download_from_url(url, output_dir, extract_from_html=True, skip_if_exists=True, max_images=None, filename_pattern=None) - 从URL下载download_from_list(url_list, output_dir, skip_if_exists=True, filename_prefix='image') - 从列表下载crawl_and_download(start_url, output_dir, max_pages=10, include_subpages=True, skip_if_exists=True) - 全站爬取extract_image_urls(html, base_url, include_bg_images=True, deduplicate=True) - 提取图片URLis_image_url(url) - 检查是否是图片URLget_image_filename(url, default) - 获取文件名get_summary() - 获取下载摘要reset() - 重置状态