/google_image_downloader

Downloading any number of images for a search query

Primary LanguagePython

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>

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.