Skip to content

nisalupendra/notion-to-markdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Given a Notion.so URL fetches it as zipped markdown.

Use

First of all you need to obtain a token. Currently the only known way of doing this is to grab it from your browser’s cookies (it is called token_v2 there).

Raw Python

  • Install Python 3 and requests
  • Set the NOTION_TOKEN environment variable to your token
  • Execute ./notion.py "<url>"

Nix

  • nix-build default.nix --argstr token "<token>" --argstr url "<url>" -A notionToPdf

Keep in mind that the derivation is impure and non-deterministic, so, um, it is not entirely clear how to force a rebuild of the same URL...

About

Export your Notion.so page as markdown

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.1%
  • Nix 15.9%