{"repo":"yannbolliger/notion-exporter","free":true,"listed":false,"github":"https://github.com/yannbolliger/notion-exporter","clone":"git clone https://github.com/yannbolliger/notion-exporter.git","description":"CLI and library for exporting .md and .csv files from any Notion page.","language":"TypeScript","stars":188,"topics":["notion","notion-api","typescript","cli","npm","markdown"],"license":"MIT","category":"cli-tools","readme_excerpt":"Notion Exporter 🛫 A simple CLI tool and TypeScript library for exporting Markdown and CSV files from any Notion.so page. The tool relies on the export feature of Notion's web-app, hence you get exactly the Markdown and CSV you'd get from clicking through: ••• Export Markdown & CSV, no subpages, OK. CLI The CLI let's you download pages as part of any script, build step or content pipeline. For example, you can use Notion as a CMS to write your blog, export the Markdown in a Github action and build a static Hugo page. 🎉 For more options, try notion-exporter --help and read about the needed Cookies. Library With the library you can do more elaborate things like directly parse and use your CSV, inject the Markdown in any React/Next.js/Vue page or interact with the underlying AdmZip object. API Check the doc comments in NotionExporter.ts for the most accurate information. Constructor Provide the required Cookies as authentification to create a new exporter client. For configuration options, refer to the definition. Methods Download and extract the first file of the requested type and return it as string. Start an export of the given block and get the exported archive's URL. The second method also downloads the ZIP and gives full access to the AdmZip object. To get all files of the exported zip use: Needed Cookies To export anything from Notion, one needs to authenticate oneself with some Cookies (like a browser would). These cookies are called token v2 and file token . They are ","default_branch":null,"files":null,"tree":[],"storefront":"/r/yannbolliger","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yannbolliger/notion-exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}