skills/baidu-image-crawler/SKILL.md
# 百度图片爬虫 (baidu-image-crawler) 按关键词搜索并批量下载百度图片的 Python 爬虫工具。 ## 功能特点 - ✅ 按关键词搜索百度图片 - ✅ 支持多页爬取 - ✅ 并发下载,速度快 - ✅ 自动去重,避免重复下载 - ✅ 断点续传,已下载图片自动跳过 - ✅ 详细的错误处理和重试机制 - ✅ 支持自定义下载目录和并发数 ## 安装 ```bash # 克隆或复制项目到本地 cd ~/projects # 项目文件已包含在 skill 目录中 ``` ## 依赖 ```bash pip install requests ``` ## 使用方法 ### 命令行 ```bash # 基础用法(搜索关键词,默认3页) python baidu_image_crawler.py 猫咪 # 爬取5页 python baidu_image_crawler.py 风景 -p 5 # 每页50张,爬取2页 python baidu_image_crawler.py 汽车 -p 2 -n 50 # 指定下载目录 python baidu_imag
npx skillsauth add hongmaple0820/agent-academy skills/baidu-image-crawlerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
按关键词搜索并批量下载百度图片的 Python 爬虫工具。
# 克隆或复制项目到本地
cd ~/projects
# 项目文件已包含在 skill 目录中
pip install requests
# 基础用法(搜索关键词,默认3页)
python baidu_image_crawler.py 猫咪
# 爬取5页
python baidu_image_crawler.py 风景 -p 5
# 每页50张,爬取2页
python baidu_image_crawler.py 汽车 -p 2 -n 50
# 指定下载目录
python baidu_image_crawler.py 美食 -d ./my_images
# 增加并发数
python baidu_image_crawler.py 风景 -w 10
# 组合使用
python baidu_image_crawler.py 星空壁纸 -p 5 -n 50 -d ./wallpapers -w 8
| 参数 | 说明 | 默认值 |
|------|------|--------|
| keyword | 搜索关键词(必填) | - |
| -p, --pages | 爬取页数 | 3 |
| -n, --num | 每页图片数 | 30 |
| -d, --dir | 下载目录 | ./images |
| -w, --workers | 并发线程数 | 5 |
from baidu_image_crawler import BaiduImageCrawler
# 创建爬虫实例
crawler = BaiduImageCrawler(
download_dir='./my_images',
max_workers=5
)
# 开始爬取
crawler.crawl(
keyword='猫咪',
pages=3,
per_page=30
)
baidu-image-crawler/
├── baidu_image_crawler.py # 主程序
├── requirements.txt # 依赖列表
└── README.md # 使用说明
============================================================
🚀 开始爬取百度图片
关键词: 美女
页数: 5
保存目录: /home/maple/projects/baidu-image-crawler/images
============================================================
🔍 正在搜索: '美女' 第 1 页...
✅ 找到 50 张图片
🔍 正在搜索: '美女' 第 2 页...
✅ 找到 50 张图片
...
📥 开始下载 250 张图片(并发数: 5)...
✅ 下载成功: ffbacad3.jpg (1080x1920)
✅ 下载成功: 9812f0b0.jpg (800x1280)
...
============================================================
📈 爬取统计
============================================================
总计: 250
成功: 250 ✅
失败: 0 ❌
跳过: 0 ⏭️
============================================================
https://image.baidu.com/search/acjson)requests.Session 保持会话ThreadPoolExecutor 实现并发下载MIT License
OpenClaw Agent Team
development
Builds dashboards, reports, and data-driven interfaces requiring charts, graphs, or visual analytics. Provides systematic framework for selecting appropriate visualizations based on data characteristics and analytical purpose. Includes 24+ visualization types organized by purpose (trends, comparisons, distributions, relationships, flows, hierarchies, geospatial), accessibility patterns (WCAG 2.1 AA compliance), colorblind-safe palettes, and performance optimization strategies. Use when creating visualizations, choosing chart types, displaying data graphically, or designing data interfaces.
development
Guided statistical analysis with test selection and reporting. Use when you need help choosing appropriate tests for your data, assumption checking, power analysis, and APA-formatted results. Best for academic research reporting, test selection guidance. For implementing specific models programmatically use statsmodels.
testing
Execute read-only SQL queries against multiple PostgreSQL databases. Use when: (1) querying PostgreSQL databases, (2) exploring database schemas/tables, (3) running SELECT queries for data analysis, (4) checking database contents. Supports multiple database connections with descriptions for intelligent auto-selection. Blocks all write operations (INSERT, UPDATE, DELETE, DROP, etc.) for safety.
development
Low-level plotting library for full customization. Use when you need fine-grained control over every plot element, creating novel plot types, or integrating with specific scientific workflows. Export to PNG/PDF/SVG for publication. For quick statistical plots use seaborn; for interactive plots use plotly; for publication-ready multi-panel figures with journal styling, use scientific-visualization.