I dig through the pinned issue on the above github page and it seems that this is how you get the master token.
Check out the full guide in the link below first.
I tried to run this code , it gives me the error above. I tried with the Gmail login and password, then with my email login and an "app password" following these step: Enable 2-step authentication ...
github.com
Here's what I did.
- First I retrieved the cookies (oauth) via IceRaven (Firefox) with cookie manager.
- I ran the python command via Termux, filled the email and the cookie, and left the android id blank.
- If it works, it should return JSON data and master token is under "Token" key.
Here's how we resume the login with the master token.
Code:
import gkeepapi
keep = gkeepapi.Keep()
keep.resume("%email","%master_token")
I tested with the sample code on the main github page and it worked.
Edit: Dang, I thought the forum recognised the video. Anyway, the one below is a screenrecord.