SkillAgentSearch skills...

ImageDownloader

A image crawler driving Google Chrome to download images from Google Image.

Install / Use

/learn @hcwang95/ImageDownloader
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Google Image Downloader

Build Status

A image crawler driving Google Chrome to download images from Google Image.

Getting Started

Dependency:

python3 or python2
google chrome on Windows
python package: selenium requests
Proper chrome driver of selenium

Please follow the sequence to adapt selenium: Google Chrome Version -> Selenium Version -> Selenium Google Driver

Then install the dependency by

pip install -r requirements.txt

Execute

Prepare your ID:

Store your target id in one file with a name, say 'id.txt'. The sample content is shown below

Sample content of id.txt
apple
banana
...

Then execute the downloader by (For windows and Linux)

python googleImageDownload.py --filename [fileroot]\id.txt --root testResult --size 100 

One can get the argument by

python googleImageDownload.py --help

After running, all results will be in 'testResults' folder, with one folder per id and ideal size of images is 100.

Note:

  1. The verison of chrome driver may not fit for chrome version, please check your chrome version and download corresponding driver from here
  2. The number of output images may not be equal to the size option since there could be some invalid url
  3. There are some important number to customize for your better experience, please check googleForWindows.py to adapt it.

Related Skills

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated4y ago
Forks0

Languages

Python

Security Score

75/100

Audited on Jun 8, 2021

No findings