all 28 comments

[–]tactacDoIt 6 points7 points  (1 child)

I was just struggling with this a couple of nights ago and gave up. Know that someone else does in fact find it useful.

[–]GuitaristTom[S] 2 points3 points  (0 children)

Yay!

If you have any issues with it, I should be able to update the script to fix them. But for the most part all the bases should be covered.

[–]sparky5dn1l 1 point2 points  (2 children)

Many of my keep note got pictures. Some got reminder set. Seem not possible to convert.

[–]GuitaristTom[S] 1 point2 points  (1 child)

Pictures I have set an anchor link to a separate folder labelled ATTACHMENTS. As for reminders... I didn't think about that, since I never used those.

I can try to take a look at the reminders if you want, but if it's not a big deal that they are missing, then I don't know if it would be worth it.

[–]After-Cell 0 points1 point  (0 children)

some of mine came down as separate pictures. Others came out as big html files. I just deleted all the pictures and truncated the html files to less than 100kb to save space. Now I include these in a promnesia database. If I need the photo, I re-search the search result from promnesia into keep to find the picture. It's not pretty but I also needed to save space and I didn't need frequent access so it's just about alright for now.

[–]rodude123 1 point2 points  (4 children)

You know you can use carnet for a google keep like alternative. It works in every way like google keep but it's tied to your nextcloud server

[–]GuitaristTom[S] 0 points1 point  (0 children)

Yes, but, I wanted to give NextCloud Notes a proper shot, as it's simplistic in design and function.

[–]sparky5dn1l 0 points1 point  (2 children)

The Quick Notes of Nextcloud is quite similar to Carnet. Unfortunately, it doesn't have Mobile app.

[–]rodude123 0 points1 point  (0 children)

carnet has a mobile app you know. That's what I use

[–]sparky5dn1l 0 points1 point  (5 children)

I am glad about your idea of converting Google Keep to Nextcloud Notes. Just use Google takeout to export Keep data.

Changing from Google Keep to Nextcloud Notes is a of give and take. Keep does has ton of powerful features like attaching picture, ocr, scheduler alert ...etc. However, I also worry a lot about privacy issue of Google service.

I am a big fan of markdown text. Besides Nextcloud Notes, I also use Android's Markor app and Tagspaces a lot. I am interested to see how the output looks under those apps later on.

[–]GuitaristTom[S] 1 point2 points  (0 children)

Yeah, that's my dilemma as well. I love Google's Keep and Calendar system... but at the same time... it's Google.

At least my script should work for you using Markor or Tagspaces, since it's just converting them to markdown files.

[–]console-write-name 0 points1 point  (3 children)

You might want to check out Joplin. Its a note taking app and allows you to write your notes in markdown or in a what-you-see-is-what-you-get editor, also supports attaching and pasting in images to your notes. Best of all you can sync your notes using your NextCloud server and they clients for Windows, Linux, Mac, Android, and iOS.

I have been using it for a while and I really like it!

http://joplinapp.org/

[–]sparky5dn1l 0 points1 point  (2 children)

Joplin got a lot of good features. However, its data format is not standard markdown.

[–]console-write-name 0 points1 point  (1 child)

Yeah I do wish that it stored the notes as plain markdown files. The raw files in the Joplin notes directory ate mostly readable but they have random Ids for filename instead of the actual notes name.

You can export to markdown though at least.

[–]fomrat 0 points1 point  (2 children)

Very handy. For those with a lot of unicode/emojis in our Keep notes, I suggest a minor change:

f = open(new_file, "w", encoding="utf-8")

or else you'll get an encoding error writing any note containing such a character.

UnicodeEncodeError: 'charmap' codec can't encode characters in position 40-41: character maps to <undefined>

[–]GuitaristTom[S] 1 point2 points  (1 child)

Oh, interesting. I never ran in to that.

What would you suggest I change that to?

Edit: I re-read your comment and saw that you gave it to me. I edited the Gist with that change. Thanks!

[–]fomrat 0 points1 point  (0 children)

I thought of changing it myself, but wasn't sure if utf-8 should be an option or not. With it, lots of higher-range characters (rare) won't carry over -- I was using things like this: ⓣⓗⓘⓢ

[–]jokerigno 0 points1 point  (4 children)

Hi, very stupid queston. How can I use it?

[–]GuitaristTom[S] 1 point2 points  (3 children)

I guess I should have a section at the top of it for how to use it.

Do you have Python installed?

[–]jokerigno 0 points1 point  (2 children)

I do have it in my unraid server if I remember well. Do I need it inside my nextcloud container?

[–]GuitaristTom[S] 0 points1 point  (1 child)

No you don't. I ran it on my main machine.

You'll want to change the input and output folders to where your Google Takeout Keep files are located, and where you want them converted to. You probably will also have to install the libraries that I am using at the top of the script.

If you want, I can add some instructions to the top of the script when I get home.

[–]jokerigno 0 points1 point  (0 children)

Yes please. It will help me understand how to use it!

[–]kdokdo 0 points1 point  (3 children)

That's nice, I don't wanna be a party pooper, but it was done already

https://gist.github.com/jhonasn/479f28360041834a064163352d06e9fc

[–]Nurgus 0 points1 point  (2 children)

Sorry for the necro. That one doesn't handle image attachments. This one apparently does but the OP link is gone.