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)  # 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.11.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for google-images-downloader-1.0.11.tar.gz
Algorithm Hash digest
SHA256 67ff3875fc11b8b230b28dd041414cf1b5734026c6467a16aea2aeb194b1fbe1
MD5 fd3f36ae291d0c1649704173c0dc7a88
BLAKE2b-256 f9f35b00a865fa37b50087132cf9004f5113e21b1811b853a1d2c0f89785d393

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_images_downloader-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 0948dbdb9f3a6fa6eab3dc773ecac52c1485dcebab20d68c145f57a67e560902
MD5 115d017848fe218d5fda4fa9d5170b98
BLAKE2b-256 c19873d9ef5d0dc7970a60d00d0be5cabdc46f69b154a15196c09b8f1f3c5327

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