Skip to content

Downloading any number of images for a search query

Notifications You must be signed in to change notification settings

Fohsap/google_image_downloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependencies needed

  1. Selenium
    Install as pip install selenium
  2. Geckodriver
    [Geckodriver is already provided in the repository and therefore the following steps might not be required if the provided one works fine]
  • Download latest release based on your OS and architecture
    wget https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz
  • Extract the file
    tar -xvzf geckodriver*
  • Make it executable
    chmod +x geckodriver
  • Add the driver to the path for other tools to use it
    export PATH=$PATH:/path-to-extracted-file/geckodriver

Download any number of images from Google image search.

  • run as (Use 2/3 according to python version)
    -Python 2
    python image_download_python2.py <query> <number of images>
    -Python 3
    python image_download_python3.py <query> <number of images>
    where:
    <query>: is the the query to search for.
    <number of images>: min(<number of images>, total google results) will be downloaded.

All the images are downloaded from Google image search. These should be used for educational purposes only. Copyright is owned by the respective websites.

About

Downloading any number of images for a search query

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%