Vorrik / Google-Reverse-Image-Search

A package to search image sources using google services
MIT License
14 stars 7 forks source link

IndexError: list index out of range #7

Open OnlyACatOfADifferentCoat opened 1 month ago

OnlyACatOfADifferentCoat commented 1 month ago

Hi, I am wondering if the structure of the output of the Lens request has changed because I am getting: IndexError: list index out of range on id_2 = py_obj['ds:0']['request'][1][7][0] inside https://github.com/Vorrik/Google-Reverse-Image-Search/blob/master/src/google_img_source_search/image_uploader.py

Vorrik commented 3 weeks ago

Hi, fixed

Allamaris0 commented 1 week ago

Hi, fixed

I still have this error.

Vorrik commented 1 week ago

Could you debug extract_image(upload_response: str) from image_uploader.py and send me "upload_response" string

Allamaris0 commented 6 days ago

response.txt

Magrgo commented 4 days ago

It's a problem with google consent page, I faced it as well in my own google lens scraper, haven't found straightforward solution yet.

Magrgo commented 4 days ago

@Vorrik please take on this consent page problem if possible

Vorrik commented 4 days ago

@Vorrik please take on this consent page problem if possible

Hm, will check later. Before, I had to use proxy to face the problem and it was fixed for me by this way https://stackoverflow.com/questions/70560247/bypassing-eu-consent-request (second answer)

image