type
status
date
slug
summary
tags
category
icon
url
sync
Notion2md is a tool that utilizes the official Notion API (implemented through the notion-sdk-py library) to export Notion page content to Markdown format. It supports downloading files and images, and offers both command-line and Python API usage methods. From version 2.9.0, it supports setting API keys through environment variables or command-line arguments, enhancing flexibility and security. The project also provides an extension feature called Notion2Medium, which allows users to publish Notion content directly to the Medium platform.
Project Introduction: Notion2md is a Python command-line tool that allows users to export Notion page content to Markdown files.
API Key: Users need to create an integration and obtain an API key, which can then be saved as an operating system environment variable or set using command-line arguments.
Installation Method: It can be installed via pip with the command
pip install notion2md
.Command-Line Usage: It offers download and unzip options, allowing users to specify the ID of Notion pages or blocks and the download path through command-line arguments.
Python API Usage: It provides two classes, MarkdownExporter and StringExporter, which are used to generate Markdown files and return Markdown strings, respectively.
Project Status: As of 2024, the project has received 663 stars, 53 forks, and has 12 contributors involved in its development.
- 作者:notion2go
- 链接:https://notion2go.com/article/notion2md
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。