hardikvasa / google-images-download

Python Script to download hundreds of images from 'Google Images'. It is a ready-to-run code!
MIT License
8.56k stars 2.1k forks source link

TypeError: 'NoneType' object is not subscriptable #374

Open nonauthor opened 1 year ago

nonauthor commented 1 year ago

I tried use the method that git clone https://github.com/Joeclinton1/google-images-download.git cd google-images-download && python setup.py install But it still can not work.

nonauthor commented 1 year ago

Item no.: 1 --> Item name = Soraya Mendivil olympic champion Evaluating... Traceback (most recent call last): File "D:\ZMJ\pythonProject\SEV_data\download_image.py", line 11, in paths = response.download(arguments) File "C:\Users\Administrator\anaconda3\lib\site-packages\google_images_download-2.8.0-py3.9.egg\google_images_download\google_images_download.py", line 970, in download File "C:\Users\Administrator\anaconda3\lib\site-packages\google_images_download-2.8.0-py3.9.egg\google_images_download\google_images_download.py", line 1118, in download_executor File "C:\Users\Administrator\anaconda3\lib\site-packages\google_images_download-2.8.0-py3.9.egg\google_images_download\google_images_download.py", line 906, in _get_all_items TypeError: 'NoneType' object is not subscriptable Getting URLs without downloading images... 'NoneType' object is not subscriptable

srkmish commented 1 year ago

Same issue. Is there a fix for this?

moisty70 commented 11 months ago

No fix

fzhxk commented 9 months ago

chrome 120.0.6099.71 2023/12/11 They moved the “info” parameter to data [25], where google_images_download.py 411 if info is None: 412 info = data[11]

413 if info is None: 414 info = data[25]

Hope to help you!

JYJ9701 commented 7 months ago

chrome 120.0.6099.71 2023/12/11 They moved the “info” parameter to data [25], where google_images_download.py 411 if info is None: 412 info = data[11]

413 if info is None: 414 info = data[25]

Hope to help you!

it works!thX!