-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/0.6.0' into main
- Loading branch information
Showing
7 changed files
with
104 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ settings*.cfg | |
skiptest.py | ||
fuzzy.py | ||
zz*.py | ||
configs.txt | ||
mdfiles/ | ||
backup/ | ||
.vscode/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
FROM ubuntu:22.04 | ||
RUN apt update | ||
RUN apt install -y python-is-python3 python3-pip | ||
RUN apt-get install -y git | ||
RUN apt-get install -y curl | ||
RUN apt-get install ca-certificates | ||
RUN curl -L -o tmp/keep-it-markdown-0.5.4.tar.gz https://github.com/djsudduth/keep-it-markdown/archive/refs/tags/0.5.4.tar.gz | ||
RUN tar -zxvf tmp/keep-it-markdown-0.5.4.tar.gz | ||
RUN pip install -r keep-it-markdown-0.5.4/requirements.txt | ||
RUN pip install requests==2.23.0 | ||
RUN pip install gpsoauth==1.0.2 | ||
RUN pip install keyrings.alt | ||
RUN curl -L -o tmp/keep-it-markdown-0.6.0.tar.gz https://github.com/djsudduth/keep-it-markdown/archive/refs/tags/0.6.0.tar.gz | ||
RUN tar -zxvf tmp/keep-it-markdown-0.6.0.tar.gz | ||
RUN pip install keyrings.alt | ||
RUN pip install git+https://github.com/simon-weber/gpsoauth.git@8a5212481f80312e06ba6e0a29fbcfca1f210fd1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Installation Steps for Advanced Users (only needs to run once) | ||
- Python 3.10+ required (or use pyenv for a specific new version) | ||
- Install git | ||
- Download latest version of `keep-it-markdown` from releases and unzip it to your working directory | ||
- Create a fresh virtual environment within the working directory | ||
- Activate the virtual environment | ||
- Install lastest `gpsoauth` package - `pip install git+https://github.com/simon-weber/gpsoauth.git@8a5212481f80312e06ba6e0a29fbcfca1f210fd1` | ||
- Follow **Second Way** instructions here to get a copy of the oauth_token cookie value - https://github.com/rukins/gpsoauth-java?tab=readme-ov-file | ||
- Run the script in the KIM directory - `python get_token.py` | ||
- Enter your Google email account name, oauth_token, and Android ID when prompted (Android ID can be anything, OAuth token expires in about 5 min) | ||
- Copy the Keep Token value output from `get_token.py` (do not execute the next step unless you have the token) | ||
- Install KIM dependencies in the venv - `pip install -r requirements.txt` | ||
- Linux users - you may need to install a Keyring - `pip install keyrings.alt` | ||
- Run KIM to save the Token in your local Keyring - `python kim.py -t <your long token value here>` | ||
|
||
Congratulations! You're done! Your Token is valid for all KIM versions now (unless Google changes it). You can now run KIM locally from this point on (see `kim.py --help` for switch options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import gpsoauth as go | ||
|
||
try: | ||
print ("\nEnter your Google ID, the copied oauth_token cookie, and any value for the Android ID:\n") | ||
t = dict(go.exchange_token(input('Google ID: '), input('oauth_token Cookie: '), input('Android ID: '))) | ||
final_token = t["Token"] | ||
print ("\nCongratulations! This is your Google Keep token - you only need to extract this once. Please copy and run 'python kim.py -t <your token here>' to save the token key in your keystore. Keep-it-markdown should work on your PC from now on!\n") | ||
print (final_token) | ||
except Exception as e: | ||
print ("\nEither you entered your ID and OAuth cookie incorrectly or the OAuth cookie has expired. Try getting the OAuth cookie and run this again - the cookie expires within 5 minutes.") | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters