Skip to content

根据关键词在360、百度、bing搜索并下载图片

Notifications You must be signed in to change notification settings

aiforworlds/DownloadImage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DownloaderImage

1. 简介

输入一组关键词,指定所需图片个数,在常见搜索引擎中检索,记录图片url地址,并将图片保存在指定目录下。

2. 功能

  • 支持的搜索引擎: 360, 必应, 百度
  • 可配置线程数及代理

3. 安装

3.1 安装相关python库

pip3 install -r requirements.txt

4. 如何使用

4.1 命令行

usage: image_downloader.py [-h] [--engine {baidu,bing,360}]
                           [--max-number MAX_NUMBER]
                           [--num-threads NUM_THREADS] [--timeout TIMEOUT]
                           [--output OUTPUT] [--user-proxy USER_PROXY]
                           keywords

help

usage: image_downloader.py [-h] [--engine {baidu,bing,360}] [--max-number MAX_NUMBER] [--num-threads NUM_THREADS] [--timeout TIMEOUT] [--output OUTPUT] [--user-proxy USER_PROXY]
                           keywords

Image Downloader

positional arguments:
  keywords              搜索关键词

optional arguments:
  -h, --help            show this help message and exit
  --engine {baidu,bing,360}, -e {baidu,bing,360}
                        抓取网站.
  --max-number MAX_NUMBER, -n MAX_NUMBER
                        下载图片数量
  --num-threads NUM_THREADS, -j NUM_THREADS
                        进程数
  --timeout TIMEOUT, -t TIMEOUT
                        下载超时
  --output OUTPUT, -o OUTPUT
                        输出文件夹
  --user-proxy USER_PROXY, -p USER_PROXY
                        是否使用代理(默认不使用)

关注公众号是对我开源最大的支持! 公众号

参考项目:https://github.com/sczhengyabin/Image-Downloader

About

根据关键词在360、百度、bing搜索并下载图片

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%