If anyone is looking for a more automated solution try gkeepapi
I use it to back up my keep (not yet ready to fully switch to joplin – for small notes keep is much faster) and it works well.
@seffyroff/@gme
I’ve expanded the original python script to handle importing image attachments from Google Keep as well. I’d love to share those changes with one of the forks if possible.
I’d also be interested in adapting the algorithm to incorporate it into Joplin officially using Electron!
@Leonard777 I’m interested in your changes. Could you please upload your version here as is, or if possible integrated into the script from post 8 in this thread by @gme? Either is fine, I can probably figure it out. TIA!
Sure can! Here you go. I’m talking to the original poster of the script from git labs here about contributing my changes along with several those of @gme.
Note, I added argparse logic so you can run -h to see the usage. I undid the default file export that gme did because I prefer to have the option of location and name. You can also pipe the output this way as with the original script so the API isn’t changed.
Just pulled in all my Keep notes with images today and it worked like a charm!
keep-to-enex.py (7.4 KB)
I confirmed that this code works with my 6.7 GB Keep collections with ~3800 items.
Note,
-
the code stall if the HTML size is 0 b, so I must clean those empty pages/files first.
-
I am using python3 keep-to-enex.py -o keep.enex.
-
The attachment download link in each note is not working in HTML notes. They only work in markdown notes, so, in future testing, I am thinking of trying to run the folder to GitHub - vHanda/google-keep-exporter: Export google keep notes to markdown first before using this python code. UPDATE The markdown exporter did not work. Only a third of my notes converted, [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. · Issue #10 · vHanda/google-keep-exporter · GitHub.
Dear @Leonard777, @gme, and all of Good People here,
thank you.
Renan
I will just post here few steps how to transfer Google Keep notes to Joplin on Windows for users that are not so familiar with "running scripts".
- Go to https://takeout.google.com/settings/takeout and request notes from Keep. Unzip downloaded file.
- Download python script from couple posts above
For example that named keep20191210-to-enex6.1.py
Copy that script directly to Keep folder unzipped in step 1. - Download and install Python - for example Python 3.9.0 or newer
https://www.python.org/downloads/windows/ - Start Windows command line - shortcut Win key + R and type "cmd" (Command Line). Type "cd 'path to unzipped Keep directory' ". For example "cd c:\Keep". The last line in the cmd window should start with that directory path.
- Run the script in that cmd window typing "py keep20191210-to-enex6.1.py" (or other name of the script). After that there should be keep.enex file in that directory ready to be imported in Joplin (File - Import - ENEX)
Note: script mentioned above is not able to transfer everything (for example pictures). So be careful and check if everything seems ok. See more above or in the first few lines in the script file.
Optional: If there is error in the step 4 about date/time you need to download and install library from
https://pypi.org/project/parsedatetime/ (for example parsedatetime-2.6-py3-none-any.whl). Using cmd from step 4 you need to type "pip install parsedatetime-2.6-py3-none-any.whl" in the directory where that library whl file is downloaded.
If you are looking to convert from Google Keep to Evernote, so you can import to Joplin, I recommend getting the latest version of the python script from the gitlab repo as it now supports importing images.
NOTE: I has to use both the input path and output file name in order to get it to work properly for me on Ubuntu 20.04. (That is also noting that need for the parsedatetime
module.)
Also I used the import Evernote as Markdown , because the following post said that makes the notes more editable.
Thank you for doing this!
Although this post is a long time ago, in order to facilitate other people to solve the problem, I still reply.
I'm also trying to import google keep into joplin, but the old solution ran into some issues, such as many notes without titles and time not imported.
So I implemented an import program myself, and it doesn't seem like a big problem for my own use. Titles, attachments, connections, etc. are all resolved.
Hi,
Version 0.5.2 of the Python markdown converter script called keep-it-markdown dynamically pulls Keep notes to markdown files along with Joplin front matter to preserve tags. This script does not require using Google Takeout for export. It runs on Windows, MacOS and Linux. You can also import markdown notes back into Keep.
Instructions on use are in the README.md file here - https://github.com/djsudduth/keep-it-markdown
@pluraldon, this script is very good.
Perhaps you could add a post to the Apps category introducing it? It would help people find your good work.
Thanks, I've found out very useful.
Thx! Were you able to authenticate with Google ok? That's my biggest concern. Having 2FA turned on can make it complex to setup.
I have 2FA turned on, but it caused no issue. The App Password was created according to your instructions without difficulty. It logged in fine once the new pass was input.
After that, a few times it missed on the first attempt to connect, but was fine when tried again.
Further feedback:
Today I had a look at KIM import, and found it worked very well; faithfully importing the test notes from the designated input_path
and multiple input_labels
defined in settings.cfg
.
As you know, Keep doesn't render markdown, so it might be convenient for the user to allow import on the .txt
extension as well as .md
. If it's an easy matter to do so?
OS: Solus x86_64
Host: Inspiron 3581
Kernel: 6.3.8-240.current
Shell: bash 5.1.16
Resolution: 1366x768
DE: Budgie 10.7.2
WM: Mutter(Budgie)
Terminal: gnome-terminal
CPU: Intel i3-7020U (4) @ 2.300GHz
GPU: Intel HD Graphics 620
Memory: 7947MiB / 15869MiB
Thank you so much! I just did it. It seems to have lost any bullets though...I imported the data into Joplin as Markdown files -- was that the right mode to use for the import?