ThoughtfulDev / EagleEye

Stalk your Friends. Find their Instagram, FB and Twitter Profiles using Image Recognition and Reverse Image Search.
Do What The F*ck You Want To Public License
4.18k stars 559 forks source link

Correct XPATHs for Google Image Search #122

Closed adaexec closed 1 year ago

adaexec commented 2 years ago

This should fix #117 #118 and #119

It appears, that the XPATH has slightly changed, and is now different when opening the Google Image Search for the second time, where no Cookie Banner is displayed.

Laufron commented 2 years ago

Altough you detected the right problem, I think you got the wrong xpaths, tested and worked for me with : PHOTO_XPATH_NOCOOKIE = "/html/body/div[2]/div[3]/div/form/div[1]/div[1]/div[1]/div/div[3]/div[2] PHOTO_UPLOAD_XPATH = "/html/body/div[2]/div[3]/div/div/div[2]/form/div[1]/div/a"

there was a mistake with the upload link too.

edit : Anyway, i guess xpaths change every other week ...

adaexec commented 2 years ago

I think this is a case of "Works on my machine". I tried the xpaths you suggested, but they didn't work at all, I got the same list index out of range error as in #117. The xpaths I suggested in the commit however work for me.

Is it possible, that the xpaths are different depending on the language the page is displayed in? My google is entirely in german.

Laufron commented 2 years ago

sorry for the late answer, after checking up mine is entirely in French. I guess xpaths differ from the country, hard to imagine how much google is powerful. By the way, the code ran but didnt manage to find out selena Gomez Instagram ;) maybe i had the wrong inputs

ThoughtfulDev commented 2 years ago

Hey so do those xpaths work now? i dont have time to check right now