Skip to content

elsehow/google-image-search-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

google image search scraper

install

pip install --upgrade google-api-python-client
pip install requests

use

python scrape.py --query="cute pandas" --n=100

Will get the first 100 google image results for "cute pandas" in a directory cute pandas/[time of query]/. That directory will contain a file query-results.json with metadata, along with 100 cute panda images, named by result index + filename

You'll also need a file in this directory called keys.json with the format

{
  "developerKey": "your google developer key",
  "cx": "you google custom search id - cse.google.com/cse/manage/all"
}

About

do a google image search and download the images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages