Script to download images from Google Images queries
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 QUERY1 QUERY2 "LONG QUERY 3"
For more informations
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=200) # Download 100 images
downloader.download("dog", resize=(256, 256)) # Download with images resizing
downloader.download("fish", 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 pytest
pytest google_images_downloader/tests
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file google-images-downloader-1.0.16.tar.gz.
File metadata
- Download URL: google-images-downloader-1.0.16.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e6b12745ffaed6901a36c53ac01470cf51917c3b4254647cfb0522cd0cce382
|
|
| MD5 |
46736dd075a5ebc12501fc2abe01565f
|
|
| BLAKE2b-256 |
292536fea9d3f13b1fc1220aadc41e4931bac7eeb56ec432b6bf69f0bf26afac
|
File details
Details for the file google_images_downloader-1.0.16-py3-none-any.whl.
File metadata
- Download URL: google_images_downloader-1.0.16-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab545400803bb7b1b1fc4a81dfde0ad4ef85fc519cb191bb329054c294921fdf
|
|
| MD5 |
ae85d126efc252409e3948e0813ffa44
|
|
| BLAKE2b-256 |
1a7fcb61e2c79220ae33f0f989bed1b42d7ee474d25198ffbf17656602c6783c
|