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

Uploaded Source

Built Distribution

google_images_downloader-1.0.9-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for google-images-downloader-1.0.9.tar.gz
Algorithm Hash digest
SHA256 71a0a8bbe2fb90343f34fcfa20c527f37156c3ec2826773a16900037305806f7
MD5 2511a4d3710e321b383d13ac56e6d066
BLAKE2b-256 d8cd78d71ef84abd0dcb69c9d86295d8ed243f1871df646a87960eb9bf179688

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_images_downloader-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c5858163b85d3d6a0544e089b75341367f97c3d6560c89212f5e7f85ea6bcacb
MD5 2533866980b1c7314cff3b0eae7e42da
BLAKE2b-256 0edf489cf9f625c15b8453d6c4d7a2c70913d8a79617da6918e1ebc5d96330dd

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