Vorrik / Google-Reverse-Image-Search

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

IndexError: list index out of range #7

Open OnlyACatOfADifferentCoat opened 3 months ago

OnlyACatOfADifferentCoat commented 3 months 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 months ago

Hi, fixed

Allamaris0 commented 2 months ago

Hi, fixed

I still have this error.

Vorrik commented 2 months ago

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

Allamaris0 commented 2 months ago

response.txt

Magrgo commented 2 months 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 2 months ago

@Vorrik please take on this consent page problem if possible

Vorrik commented 2 months 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