notion-py icon indicating copy to clipboard operation
notion-py copied to clipboard

Is it possible to export the markdown output of a notion page?

Open TimothyBramlett opened this issue 6 years ago • 13 comments

Is it possible to export the markdown output of a notion page?

I can't seem to find an easy way to do this.

TimothyBramlett avatar Nov 15 '19 05:11 TimothyBramlett

I'd love to be able to kick off an export as well! I can make another issue if needed, as not just markdown would be gold

GregHilston avatar Nov 19 '19 15:11 GregHilston

@GregHilston I did figure out how to do it by taking a look at https://github.com/serokell/notion-to-markdown.

It didn't work out of the box though and I had to inspect the call being made by my Chrome browser because it looked like Notion may have changed things a bit since that code was posted. Works great now though! I am using both this library and the code from that one.

I am going to be writing about the approach I used and posting all code to get started on my blog: https://timothybramlett.com/Building_This_Blog_with_Notion.html

I may even be able to add the feature to this library is someone can point me in the right direction. :)

TimothyBramlett avatar Nov 20 '19 14:11 TimothyBramlett

@TimothyBramlett Understood. If you fixed https://github.com/serokell/notion-to-markdown, fork and pull request to that project or just keep your fork up to date!

I'd love to see what you did and use that on my end as well.

I'll keep my eyes peeled on your blog post, read through it now. If you hit me when you're finished, I'd love to see what you've come up with!

I'll be trying to integrate Notion into my dev experience as well, as I am also using a static site generator ha

GregHilston avatar Nov 20 '19 14:11 GregHilston

@GregHilston Sounds good! I will contact you here once I get the code up in the next few days.

TimothyBramlett avatar Nov 20 '19 21:11 TimothyBramlett

@TimothyBramlett awesome! Excited to see what you write!!!

GregHilston avatar Nov 20 '19 21:11 GregHilston

If you come up with a nice standardized way to do this (that you're planning on maintaining), let us know and I'll link to it from notion-py so others can find it -- thanks!

jamalex avatar Jan 03 '20 01:01 jamalex

@TimothyBramlett @GregHilston hey did either of you ever find a way to do this? I'm looking at the linked code from serokell but also wondering if anyone else made progress on their own.

iansinnott avatar Apr 15 '20 23:04 iansinnott

Hey @iansinnott I ended up abandoning my usage of Notion because of things like this, being locked down.

I've been loving writing pure markdown myself with LaTeX and its working perfectly. With VS Code or w/e editor one likes.

GregHilston avatar Apr 16 '20 00:04 GregHilston

Thanks @GregHilston. I'm definitely feeling the pain of trying to use Notion as a CMS

iansinnott avatar Apr 16 '20 06:04 iansinnott

@GregHilston, I came here to find a way to export all my Notion to a private GH repo. I don't like walled gardens any more than you do, but I like how Notion rips a page and puts it in Markdown. Best case, I would love to find a Chrome macro that elegantly converts the page to Markdown and feeds it to GH. :)

So, while I am not here to crosspost, I am working on a variant of kitabu that doesn't require use of a licensed product (i.e. free) and uses GH actions to compile directories of MD as books. It's called Verkilo, and it's pretty much just in alpha

Merovex avatar Aug 29 '20 12:08 Merovex

@Merovex Very interesting! Do you have any links/writings I can read about your workflow?

I've pretty much kept up with exclusively writing markdown and latex in vm and using Github/Nextcloud to sync. Its worked great

GregHilston avatar Aug 31 '20 15:08 GregHilston

That's something i need to do...document the process. Give me a week and I'll see what I can muster. ;)

Merovex avatar Sep 02 '20 21:09 Merovex

@Merovex ;)

GregHilston avatar Feb 10 '21 02:02 GregHilston