发布于: 2024-6-6最后更新: 2024-9-9字数 00 分钟

type
status
date
slug
summary
tags
category
icon
url
sync
Notion Exporter is a CLI tool and TypeScript library designed to export Markdown and CSV files from Notion.so pages. It relies on the export functionality of the Notion web application, allowing direct export to the desired format without the need for additional pages. The CLI tool can be integrated into scripts or content pipelines, such as serving as a CMS, while the library offers more sophisticated features, like direct CSV parsing or injecting Markdown into React/Next.js/Vue pages.
 
  • Tool Overview: Notion Exporter offers both CLI and library forms for exporting Markdown and CSV files from Notion pages, enabling users to conveniently convert Notion page content into the desired format.
  • CLI Usage: The CLI tool allows users to download pages via the command line, for example, after installing with npm, specific pages' CSV files can be downloaded using command-line arguments.
  • Library Features: The library provides more advanced functionalities, such as parsing CSV data, utilizing Markdown in front-end pages, and interacting with AdmZip objects.
  • API Documentation: Detailed API documentation can be found in the comments within NotionExporter.ts, offering precise information on constructors and methods.
  • Authentication Cookies: To export content from Notion, authentication via Cookies is required, which can be obtained through the browser's developer tools.
  • Obtaining Block ID: To download a page or table, its Block ID is needed, typically retrieved from the URL.
  • Stability Note: The tool is entirely dependent on Notion's internal API, and while the download functionality is relatively stable, the API may change at any time.

Loading...
React Notion

React Notion

A React renderer for Notion pages. Use Notion as a CMS for blogs, documentation, or personal sites.


Notion Page to HTML

Notion Page to HTML

A NodeJS tool for converting public Notion pages to HTML.