Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with data object info #30

Open
fsbarros98 opened this issue Dec 6, 2022 · 4 comments
Open

Problem with data object info #30

fsbarros98 opened this issue Dec 6, 2022 · 4 comments

Comments

@fsbarros98
Copy link

image
the info seems to be coming in position 22 instead of 9 or 11, both of them are empty

@diveaire
Copy link

diveaire commented Dec 6, 2022

same problem,
when i try to download i got this error:

Evaluating...
Starting Download...
'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "google_images_download.py", line 1178, in <module>
    main()
  File "google_images_download.py", line 1166, in main
    paths, errors = response.download(arguments)  # wrapping response in a variable just for consistency
  File "google_images_download.py", line 979, in download
    paths, errors = self.download_executor(arguments)
  File "google_images_download.py", line 1119, in download_executor
    arguments)  # get all image items and download images
  File "google_images_download.py", line 906, in _get_all_items
    object['image_link'], object['image_format'], main_directory, dir_name, count,
TypeError: 'NoneType' object is not subscriptable

Any idea how to fix it ??

@fsbarros98
Copy link
Author

I fixed it by changing line 407 in google_images_download.py from info = data[11] to info = data[22], but I advise debugging within this function to verify if this will work for you

@marianoig4
Copy link

Is no working for me. Even changing the 407 line....

@nikukyugamer
Copy link

nikukyugamer commented Jan 23, 2023

How about not info = data[22] but info = data[23]?
However, it is true that this is only a temporary fix.

cf. #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants