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

Specify browser to use for web scraping

from google_images_downloader import GoogleImagesDownloader

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

Show browser while web scraping

from google_images_downloader import GoogleImagesDownloader

downloader = GoogleImagesDownloader(show=True)

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.8.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for google-images-downloader-1.0.8.tar.gz
Algorithm Hash digest
SHA256 2c8c726934447880ff741f9e8ac542a9a0ed38fed340b894aa24988afc1b3a18
MD5 d1a88a2bbdc0037ece84d0048ba820c7
BLAKE2b-256 18e3011a5636efc858f419ffcf711763fc505f0b5f43fc63c89d6a40a691250d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_images_downloader-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c877ca741bcc1fdd09d6a32362fcd622f856799ea5d35dedc9ffd5834475eba7
MD5 9f64e1b009607800cb9426b618377113
BLAKE2b-256 9d3d00397e89fb8d32b55a8c2d93546ed451dd5b12b4d60663ebfe6d11849bcc

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