-
Notifications
You must be signed in to change notification settings - Fork 7
Updated code to be compatible with Cookie Policy page #1
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
base: master
Are you sure you want to change the base?
Conversation
…eject cookie" page, the option "Reject all" is automatically selected.
@LaurentMertens Thanks a lot, this fixed my issue! |
Sorry for the late reply, will check soon |
@FlorianMgs @LaurentMertens Could you try this from http.cookiejar import DefaultCookiePolicy s = requests.Session() s.cookies.set_policy(DefaultCookiePolicy(blocked_domains=['consent.google.com'])) rev_img_searcher = ReverseImageSearcher(s) res = rev_img_searcher.search(image_url) |
I get an error:
|
Hmm, I haven't been able to get this error yet. What country? Do you use proxy? Does the problem appear in time of first search? Can you also send img url |
did you find the solution? |
Still have the error... Here is the code i used:
Tried two images, both gave the same error:
FWIW, I'm located in Belgium, no proxies. EDIT: Using the Python debugger, I can see that the returned page from the Google request is the "Before you continue to Google" page. Potentially, this is a page we only get to see in Europe, with the GDPR laws? |
@LaurentMertens @FlorianMgs @Temirln @laumerte updated lib |
I reinstalled the repo, latest version 1.2.2, and still get the same problem. |
Upated upload_image.py so that when the first response is a "Accept/Reject cookie" page, the option "Reject all" is automatically selected.