question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gkeepapi.LoginException: NeedsBrowser

See original GitHub issue
Python 3.6.3 (v3.6.3:2c5fed8, Oct  3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import gkeepapi
>>> import getpass
>>> gkeepapi.Keep()
<gkeepapi.Keep object at 0x000001B86923C438>
>>> keep = _
>>> keep.login("********@********", getpass.getpass())
Password:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\EcmaXp\AppData\Roaming\Python\Python36\site-packages\gkeepapi\__init__.py", line 363, in login
    ret = auth.login(username, password, get_mac())
  File "C:\Users\EcmaXp\AppData\Roaming\Python\Python36\site-packages\gkeepapi\__init__.py", line 67, in login
    raise LoginException(res.get('Error'), res.get('ErrorDetail'))
gkeepapi.LoginException: ('NeedsBrowser', 'To access your account, you must sign in on the web. Touch Next to start browser sign-in.')```

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
dkdndescommented, Apr 18, 2019

You need to allow an application to be added via this URL, it will simulate the recaptcha check:

gkeepapi and the packaged used for the Android Application settings don’t support recaptcha, and that’s how google blocks you initially.

4reactions
buyuk-devcommented, Jun 11, 2018

I experienced this issue myself when i was trying to test out gkeepapi. Funny thing is, I had disabled two-step authentication and the issue still occurred. So I thought what would happen if I enable two step authentication for my google account to be able to generate app password for my script. It turns out that it worked that way 😃 Hope this helps someone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gkeepapi - Bountysource
gkeepapi. An unofficial client for the Google Keep API. ... LoginException: ('NeedsBrowser', 'To access your account, you must sign in on the web....
Read more >
Using Python package gkeepapi to access Google Keep
LoginException : ('NeedsBrowser', 'To access your account, you must sign in on the web. Touch Next to start browser sign-in.') For the above ......
Read more >
Welcome to gkeepapi's documentation! — gkeepapi 0.13.6 ...
I get a “NeedsBrowser”, “CaptchaRequired” or “BadAuthentication” exception.LoginException when I try to log in. This usually occurs when Google thinks the login ...
Read more >
Google Keep Custom Component - Home Assistant Community
_email = None gkeepapi.exception.LoginException: ('NeedsBrowser', 'To access your account, you must sign in on the web.
Read more >
google keep - CSDN
gkeepapi 使用起来极其简单,装个包,对着示例代码简单改一些,前后三、五分钟完成。 ... LoginException: ('NeedsBrowser', 'To access your account, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found