Created
September 3, 2021 13:07
-
-
Save calexandrepcjr/e00795583daf36cd815c25dda4f52fee to your computer and use it in GitHub Desktop.
Exports notion pages to markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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