Skip to main content

Google Image Scraper - A package that allows to fetch image urls and download images from google images.

Project description

Google-Image-Scraper

About

Image scraping is required many a times for web-based and machine learning projects. This module will help in fetching or downloading images from google.

Supported Systems

  • Windows

Supported Browsers

  • Chrome

How to Use?

This module is to be used along with chromedriver. Download correct version of chromedriver from here:-

Link - https://chromedriver.chromium.org/downloads

from gi_scraper.scraper import Scraper

urlDict = Scraper(query="Search Query", count=50, tCount=1, quality=True, downloadImages=False, saveList=False, defaultDir=False, dirPath="", driverPath="/path/to/chromedriver.exe")
Parameter Description Default
driverPath Scraper(driverPath="Path to chromedriver.exe") Current Working Directory
query Images that you are looking for. -
count Number of Images required. (Max. : 150 for quality = True, Max. : 300 for quality = False). 50
tCount Number of threads (Max. : 8). 1
quality True: fetches only high image quality urls or images. True
downloadImages True: download the images to a folder. False
saveList True: save list of urls to a folder. False
defaultDir True: save files to a folder created at current working directory. False: prompts for directory selection. False
dirPath Set path to your default download/save directory. This will avoid prompting for path during download. This setting also overrides defaultDir in which download path is current working directory by setting it to entered path. Not Set

urlDict will contain the dictionary of image urls that can be used anywhere in the program.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gi_scraper-0.1.3.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

gi_scraper-0.1.3-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page