Skip to main content

A python package to scrape images from Google Images.

Project description

Scrape-Google-Images

Scrape images from Google Images based on search terms given to it. This can be used to generate datasets of images for research or AI.

Install

pip3 install scrape-google-images

Example

>>> from scrape_google_images import scrape_google_images
>>> scrape_google_images(download_path="./images/", terms=["dog", "monkey", "elephant"], number_of_images=25, thread_count=3, resolution=[None, None], log=False)

DownloadPath: The path to an empty directory where the images will be downloaded to.

Terms: The search terms that it will use to get the images.

NumberOfImages: The number of images for to it will try scrape for each term.

ThreadCount: The amount of threads used to run the program.

Resolution: Set the Resolution of the images that will be downloaded. If you do not want to rescale them, put null as shown above. If either Width or Height is set to None, the image will not be rescaled

log: Print logs/debugs to see what the program is doing.

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

scrape_google_images-1.0.2.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

scrape_google_images-1.0.2-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

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