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 details)

Uploaded Source

Built Distribution

google_images_downloader-1.0.10-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file google-images-downloader-1.0.10.tar.gz.

File metadata

File hashes

Hashes for google-images-downloader-1.0.10.tar.gz
Algorithm Hash digest
SHA256 42143ae10efe1d1f0d067cc66e9f7114851af72a90af277a043ad2d4fa3afd9c
MD5 f90d3c8e4a99ac0fb243c2ad1a824348
BLAKE2b-256 265747cd86d00358fa069ef5d1aef26f8fd354d1a02df759d4c175475f8c0b76

See more details on using hashes here.

File details

Details for the file google_images_downloader-1.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for google_images_downloader-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 6c8f2bf3bee42a67218eb330da15da7736607867e5936cc132d3f4ae4242d362
MD5 3bcb317425d12c86d2f056a78b49e35f
BLAKE2b-256 e7e7a2e84bbebb7147c4b016893a582255503ffb1b9bbb7cfd4f13cabeee3f22

See more details on using hashes here.

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