Skip to content

jcgavella/image-compile-google

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-images

Simple script using Python and Selenium that allows to download images from Google Images. This script was developed to get an image database to train a neuronal network (AI).

How to use:

Just type in a terminal:

 python3 google_images.py cat 10

You can change “cat” by any word you want to search and “10” by any number of images you want to download.

Note: Keep in mind that this script allows you to download all the images google is going to send you, but depending of the term you search for, it’s going to be more or less results.

Requirements

System requirements:
  • Python 3
  • geckodriver in PATH.

Note: You can download the geckodriver here. The simple way in linux to add the executable to the PATH is moving it to /usr/bin and adding it execute permissions (super user required).

Python requirements:
  • requests
  • selenium

You can install them using pip install -r requirements.txt.

Limitations and ideas

Normally you can get from Google Images less than 1000 images by query. If you are going to use this script to download images to train a neural network, you can search for the same term in different languages to get more results.

License

You can download, change, adapt and do whatever you want with this code without my explicit permission and without attribution, just in compliance with the GPLv3 license.

About

Download images from google image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors