Skip to main content

Script to download images from a "Google Images" query

Project description

google-images-downloader

PyPI version Build Status

Requirements

OR

Installation

pip install google-images-downloader

OR

git clone https://github.com/Harkame/GoogleImagesDownloader.git

cd GoogleImagesDownloader

pip install .

Usage

Command line

Basic usage

google-images-downloader -q QUERY

For more information

google-images-downloader -h

Programmatically

from google_images_downloader import GoogleImagesDownloader

downloader = GoogleImagesDownloader() # Use chrome by default

downloader.download("bear")  # Download 50 images in ./downloads folder

downloader.download("cat", destination="C:\download\destination")  # Download at specified destination

downloader.download("bird", limit=100)  # Download 100 images

downloader.download("dog", resize=(256, 256))  # Download with images resizing

downloader.download("dog", format="JPEG")  # Download with images re-formatting (JPEG or PNG)

downloader.quiet = True  # Disable progression messages

downloader.download("fish")  # Quiet download

downloader.driver.close() # Do not forget to close the driver

Specify browser to use for web scraping

from google_images_downloader import GoogleImagesDownloader

downloader = GoogleImagesDownloader(browser="firefox") # Default : "chrome"

downloader.driver.close() # Do not forget to close the driver

Show browser while web scraping

from google_images_downloader import GoogleImagesDownloader

downloader = GoogleImagesDownloader(show=True)

downloader.driver.close() # Do not forget to close the driver

Tests

pip install tox

tox

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

google-images-downloader-1.0.10.tar.gz (18.5 kB view hashes)

Uploaded Source

Built Distribution

google_images_downloader-1.0.10-py3-none-any.whl (19.8 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