Skip to main content

Script to download images from a "Google Images" query

Project description

google-images-downloader

PyPI version build Codacy Badge Maintainability License: GPL v3

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(browser="chrome", show=False, debug=False,
                                    quiet=False, disable_safeui=False)  # Constructor with default values

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", file_format="JPEG")  # Download with images re-formatting (JPEG or PNG)

downloader.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.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.12.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for google-images-downloader-1.0.12.tar.gz
Algorithm Hash digest
SHA256 559aa13439c600d96ce249a470a2503125ae85a538e4e02bb2276cb035dc3695
MD5 391a815694993743b33e0817aa237a00
BLAKE2b-256 4c83c3b0bbe22513ca1a1b1f95d6582c90bd8f0788f6fd9b8c10f6d2e1240720

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_images_downloader-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 4979008ee43b0b0ef4f03b5db644a7dd461c470dd5777614f132963682b8b14b
MD5 b67663dcf9d627f2c4fd1ff30fc0f941
BLAKE2b-256 3f434edfb95610402f6f3e695ee5400a12c252d3fee346fc78783ce28fcbcccc

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