Skip to content

Commit 657589d

Browse files
authored
Merge pull request #5 from pushp1997/main
Added steps to resolve 2FA problem
2 parents 1752c6f + e697e6c commit 657589d

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,31 @@ chmod +x gkeep2notion.py
2727

2828
### Preventing "Authentication failed" on some systems
2929

30-
On some systems the authentication fails even with valid credentials. This may happen because of two reasons: either Google issues a CAPTCHA for your IP address, or SSL certificate validation fails.
30+
On some systems the authentication fails even with valid credentials. This may happen because of three reasons:
31+
1. You have enabled 2FA on your account
32+
2. Google issues a CAPTCHA for your IP address
33+
3. SSL certificate validation fails.
3134

32-
To fix the CAPTCHA problem, try using the [Unlock CAPTCHA link](https://accounts.google.com/DisplayUnlockCaptcha) before retrying login.
3335

34-
To try fixing the SSL problem, revert to an older version of the following library:
36+
**To fix the 2FA problem:**
37+
38+
You need to create an app specific password for the script.
39+
40+
1. Go to https://myaccount.google.com/apppasswords
41+
2. Login to your account
42+
3. Under the `Select the app and device you want to generate the app password for.` section:
43+
1. Select `Other(Custom name)` from the `Select app` dropdown
44+
2. Enter some name like `gkeep2notion` and click on `Generate` button
45+
3. Copy password from the popup and click Done
46+
4. Use this copied password in your terminal when script prompts for password
47+
48+
**To fix the CAPTCHA problem:**
49+
50+
Try using the [Unlock CAPTCHA link](https://accounts.google.com/DisplayUnlockCaptcha) before retrying login.
51+
52+
**To try fixing the SSL problem:***
53+
54+
Revert to an older version of the following library:
3555

3656
```
3757
pip3 install requests==2.23.0

0 commit comments

Comments
 (0)