google-images-download icon indicating copy to clipboard operation
google-images-download copied to clipboard

Workarounds for downloading more than 400 images

Open ansariyusuf opened this issue 4 years ago • 7 comments

I understand that there is a cap of images per query on google images now. I am trying to generate a data set that needs at least 1000 relevant results per query. Can anyone recommend any ideas that may solve the problem. I am trying to alter the queries slightly, but, it's not efficient.

Also, does google-images-download support querying in a different language?

Thank you in advance!

ansariyusuf avatar Dec 18 '20 06:12 ansariyusuf

It should be able to download more than 100 as long as you have chromium installed.

Also you can specify a language with the language argument

Joeclinton1 avatar Jan 02 '21 20:01 Joeclinton1

I have got the same issue, I tried different keywords, but all download with less than four hundred images, and the --related_images seems not working. Does anyone fix this?

XiaokangLiuCUG avatar Feb 16 '21 04:02 XiaokangLiuCUG

I have got the same issue, I tried different keywords, but all download with less than four hundred images, and the --related_images seems not working. Does anyone fix this?

Not possible, it's Google's image search query limit. Possible workaround is to make multiple queries with an added random letter/digit/word.

alekslario avatar Feb 17 '21 08:02 alekslario

It is in fact possible to get more than 400 images, see my post in the above link.

NicolasGrosjean avatar Jun 16 '21 14:06 NicolasGrosjean

It should be able to download more than 100 as long as you have chromium installed.

Also you can specify a language with the language argument

Hi Joe,

Thanks for your work in this repo.

I tried the code googleimagesdownload --keywords "Polar bears" --chromedriver 'path/to/chromedriver' --limit 400, but got error like json.decoder.JSONDecodeError: Extra data: line 1 column 107123 (char 107122)

But it works when setting up the image limit under 100.

I'm using python3.9. Any suggestions? Thanks.

Kind regards. Kai

kaiqiangh avatar Aug 17 '21 22:08 kaiqiangh

Hi @kaiqiangh,

It was fixed with https://github.com/Joeclinton1/google-images-download/pull/8

NicolasGrosjean avatar Aug 19 '21 08:08 NicolasGrosjean

Hi @kaiqiangh,

It was fixed with Joeclinton1#8

Thank you @NicolasGrosjean ! I will check it.

kaiqiangh avatar Aug 19 '21 09:08 kaiqiangh