-2

I've found this library to download images from google using a keyword but i don´t understand how to use it. How it would be the code to download one image from a keyword and store it into a an specific folder? thanks

https://google-images-download.readthedocs.io/en/latest/index.html

Hermi Bv
  • 53
  • 1
  • 9
  • 2
    Just go to google, make a search, go to images, right click on the image you want to download and click `save image as`.. any other way is not liked by google. Even if you build something it will not work always, its gonna break sooner or later as google keeps on changing its code – anuragal Jul 06 '20 at 03:27
  • 1
    The code uses selenium, which is an automation software. The following might examples might help: https://google-images-download.readthedocs.io/en/latest/examples.html#code-sample-importing-the-library. –  Jul 06 '20 at 03:32
  • my problem is that the example in a script doesn't download anything, and the others are for the console, not for a script – Hermi Bv Jul 06 '20 at 03:36
  • 1
    If you look at the code [here](https://github.com/hardikvasa/google-images-download/blob/master/google_images_download/google_images_download.py#L721), script is checking for class `rg_meta notranslate`, I guess that is no longer present – anuragal Jul 06 '20 at 03:44

1 Answers1

2

You can use Google-Images-Search to download images from google. But you'll need to use their API which costs money.

If you don't want to use the API for this you should read this: Is it ok to scrape data from Google results?

mrr67man
  • 85
  • 2
  • 8