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

NeedsBrowser error with get_tokens.py #71

Open
rithvikvibhu opened this issue Jan 9, 2021 · 6 comments
Open

NeedsBrowser error with get_tokens.py #71

rithvikvibhu opened this issue Jan 9, 2021 · 6 comments

Comments

@rithvikvibhu
Copy link
Owner

Migrated from this gist comment https://gist.github.com/rithvikvibhu/952f83ea656c6782fbd0f1645059055d#gistcomment-3586276

@cicero200272:

I am requested to log in (using a browser) first. When I copy & paste the URL to a browser window, I can provide my credentials, but then I am stuck on a "One moment please..." page which does not reload. Does anybody else have this kind of problem?

@rithvikvibhu:

Not sure what you mean @cicero200272. Which URL did you copy? This script doesn't need any browser or a website to visit at all.

@cicero200272:
screen1

@rithvikvibhu
Copy link
Owner Author

Have you set the USERNAME and PASSWORD fields in the script?

Verify:

  • Do you have 2FA enabled? If so, then create an app password and use that instead.
  • Make sure the USERNAME variable is just the username, not the complete email address (@gmail.com).
  • Are the overrides unchanged? (all of them set to None is fine).

@cicero200272
Copy link

Hi @rithvikvibhu, thanks for looking into this! I did replace USERNAME and PASSWORD with my credentials.

  • No 2FA
  • I use USERNAME without email extension
  • All set to None

@allezacc
Copy link

did you solve this? I'm getting your same error.

@rithvikvibhu
Copy link
Owner Author

Okay this has worked from people at kiwiz/gkeepapi#20:

  • Set the device_id override to a random value with _get_device_id() (so that it doesn't change between script runs)
  • Run the script - if it works, all good, otherwise continue
  • Visit https://accounts.google.com/DisplayUnlockCaptcha and complete captcha
  • Try the script again - should work now

This applies to accounts without 2FA also.

@cicero200272
Copy link

Visiting the captcha page did the trick! Thanks again for your help.

@SportsApps
Copy link

Hi!!
I have been trying to get the tokes but I'm experiencing the same issue reported here.
The Google web captcha is not working any more.
I have tried all other solutions with no luck. ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants