Skip to content

Instantly share code, notes, and snippets.

@calexandrepcjr
Created September 3, 2021 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calexandrepcjr/e00795583daf36cd815c25dda4f52fee to your computer and use it in GitHub Desktop.
Save calexandrepcjr/e00795583daf36cd815c25dda4f52fee to your computer and use it in GitHub Desktop.
Exports notion pages to markdown
from narkdown.exporter import NotionExporter
if __name__ == "__main__":
token_v2 = "you can take this token opening the browser's page inspector, going to page storage and take token_v2 from the notion cookies"
page_url = "https://www.notion.so/company_name/link"
notion_exporter = NotionExporter(token_v2)
notion_exporter.get_notion_page(page_url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment