Giter Club home page Giter Club logo

googleimagesdownloader's Introduction

GoogleImagesDownloader

This repository can download images from google with specified keywords or bare urls

Requirements

  • python 3.6
  • selenium 3.6.0
  • Firefox 55+
  • geckodriver

Firefox and geckodriver are required by selenium, and Firefox 55 or greater is recommended, cause geckodriver support that best. As for geckodriver, just download the latest version of geckodriver from here, then add it to the PATH environment variable.

Here is an example of downloading with selenium using 2 processes

Details and Configuration

Methods

A few different methods are provided

  • other/download_with_urllib
    • with just urllib, no dynamic js
    • due to the limit by google, each searching query can download at most 100 images
    • will directly download all the images since the number is small
  • download_with_keywords
    • with Selenium, we can directly search and scroll in the browser, so we can get more than 100 images for each searching query.
    • Specify main_keywords and supplemented_keywords in the code, each main_keyword will join with each supplemented_keyword to become a searching query, and one directory will be created for each main_keyword to store the related images.
    • will firstly store the actual links of images in a file, then download the actual images with the file
  • download_with_urls
    • with Selenium, we can directly search and scroll in the browser, so we can get more than 100 images for each searching query.
    • Specify urls in the code
    • will firstly store the actual links of images in a file, then download the actual images with the file

Most of the above methods support downloading with single process or multiple processes

googleimagesdownloader's People

Contributors

chrsmlls333 avatar wulc avatar catadanna avatar wang-shihao avatar

Stargazers

 avatar Patrick Wilkie avatar Thomas Huang avatar  avatar jacob avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.