Script to download images from a "Google Images" query
Project description
google-images-downloader
Requirements
- Google Chrome(Used by default)
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
Built Distribution
File details
Details for the file google-images-downloader-1.0.12.tar.gz
.
File metadata
- Download URL: google-images-downloader-1.0.12.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 559aa13439c600d96ce249a470a2503125ae85a538e4e02bb2276cb035dc3695 |
|
MD5 | 391a815694993743b33e0817aa237a00 |
|
BLAKE2b-256 | 4c83c3b0bbe22513ca1a1b1f95d6582c90bd8f0788f6fd9b8c10f6d2e1240720 |
File details
Details for the file google_images_downloader-1.0.12-py3-none-any.whl
.
File metadata
- Download URL: google_images_downloader-1.0.12-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4979008ee43b0b0ef4f03b5db644a7dd461c470dd5777614f132963682b8b14b |
|
MD5 | b67663dcf9d627f2c4fd1ff30fc0f941 |
|
BLAKE2b-256 | 3f434edfb95610402f6f3e695ee5400a12c252d3fee346fc78783ce28fcbcccc |