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

extract gdoc_token by a webdriver instead of httpx #380

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

ahmadhany
Copy link
Contributor

This is a fix for the recent changes that google has made.

Old scenario: get_authorization_source() was returning an HTML source from hangouts by sending an HTTP request using HTTPX lib to extract the gdoc_token, but after the recent changes by google – which might be extra anti-bot detection – the returned HTML source becomes no longer contain gdoc_token.

New scenario: get_authorization_source() uses a selenium web driver instead of HTTPX lib to extract gdoc_token.

@mxrch
Copy link
Owner

mxrch commented Nov 17, 2022

image

Your modifications don't work for me :

@ahmadhany
Copy link
Contributor Author

ahmadhany commented Nov 18, 2022

Are you sure you are on the right branch/pull-request? because I can't see the log message "Starting browser..." before checking whether the cookies are valid or not. Please double check and let me know.

As you see below it's working, I tested it on Windows 10 & Ubuntu using Python V3.10.7.
Capture

@mxrch mxrch merged commit 01ebc20 into mxrch:master Nov 23, 2022
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

Successfully merging this pull request may close these issues.

3 participants