Skip to main content

Automatically download images from google image search

Project description

gscraper

A google image search scraper to automatically search and download images from the web

Install

pip install gscraper

Format

from gscraper import scrapeImages

scrapeImages(search_queries='nicolas cage', limit=5, sub_dir_name='<query-string>', output_directory='downloads', delay=0 )
'''
search_queries:     Comma separated <String> or <List>
limit:              <Int> 0-100
folder_name:        <String> or '<query-string>'
output_directory:   <String>
delay:              <Int> Seconds, delay between download queries

'''

Examples

from gscraper import scrapeImages

scrapeImages( search_queries='query', limit=3 )
'''
downloads/
| query/
| | image-1
| | image-2
| | image-3
'''
scrapeImages( search_queries='query', limit=1, sub_dir_name='output' )
'''
downloads/
| output/
| | image-1
'''

scrapeImages( search_queries=['one','two'], limit=2, output_directory='numbers' )
'''
numbers/
| one/
| | image-1
| | image-2
| two/
| | image-1
| | image-2
'''

scrapeImages( search_queries=['one','two'], limit=2, sub_dir_name='output' )
'''
numbers/
| output/
| | image-1
| | image-2
| | image-3
| | image-4
'''

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gscraper-0.1.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file gscraper-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gscraper-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71ade29ea48258ed100cba6e5bd9604c05fb870ce2db1799cc8b8289fa88ac9a
MD5 597261c100f88ef91a2af20f56e67c87
BLAKE2b-256 1502307777420dc5bcc0df68c63b282c1a1e9a890d3779998fd0f8652ab3553e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page