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

Stopped working - Image objects data unpacking failed #45

Open
pietpatat2 opened this issue Apr 10, 2024 · 4 comments
Open

Stopped working - Image objects data unpacking failed #45

pietpatat2 opened this issue Apr 10, 2024 · 4 comments

Comments

@pietpatat2
Copy link

Evaluating...
Expecting value: line 1 column 1 (char 0)
Image objects data unpacking failed. Please leave a comment with the above error at #26

@danieldufek03
Copy link

Same Issue for me

@Macasti4
Copy link

Me too, found the problem is on the method _extract_data_pack(self, page). The page is not beeing processed correctly, therefore returning an empty self._extract_data_pack(respData), that is then taken used "in return self._image_objects_from_pack(self._extract_data_pack(respData)), self.get_all_tabs(respData)" and its here where the exception ocurrs, but i have no idea how to fix this. All this on the file google_images_download.py

@enzyme69
Copy link

Can confirm this patch also stopped working.

@eamonnkenny
Copy link

eamonnkenny commented Jun 18, 2024

This issue is that:
start_line = page.find("AF_initDataCallback({key: \'ds:1\'") - 10
does not exist anymore, so this value returns -11, since find is -1. So the respData is completely different I imagine.

I could be wrong, but it might be better to search on ["https:// up to the next ". That way you can just pick each search result out. I think the code would be much more resilient and easier to debug as a result. I don't have time to work on this now myself.

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

5 participants