Skip to content

A web scraper to do automated massive image downloads using Selenium. Tested on Firefox, but should work on Chrome/Edge with their respective webdriver.

License

Notifications You must be signed in to change notification settings

RomeroRodriguezD/Google-Images-Hunter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Images Hunter

Google Images Hunter is a package made to scrap Google Search images engine.

Installation

Use the package manager pip to install Google Images Hunter.

pip install google-images-hunter

Usage

from google_images_hunter.google_images_hunter import Searcher
from google_images_hunter.image_downloader import ImageDownloader

# Step 1, create a Searcher object.You can set driver_path and other kwargs. 

searcher = Searcher()

# Step 2, set and trigger the scrap() function. Concept is a required parameter.
# Max_images and loadmore have default values. download_url_lists defaults as False.

mylist = searcher.scrap(concept='clown', download_url_lists=True, max_images=250, loadmore=20)

# Step 3, use the URl list generated by scrap() to download the images on a given path. Defaults to current path.

ImageDownloader(mylist, path='downloadtest/clowns/')

Contributing

This is just an scraper I built since I have not been able to find the exact kind of Google images scraper I was looking for. I made it mixing my own ideas and some features I cherrypicked from different scraping scripts I found during my research task. Thanks to those anonymous helpers.

Notice that this is the first version, currently tested on Firefox, so although it should work regularly on Chrome and Edge, it still needs more tests.

License

MIT

About

A web scraper to do automated massive image downloads using Selenium. Tested on Firefox, but should work on Chrome/Edge with their respective webdriver.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages