Skip to main content

Notion Markdown Exporter with Python Cli

Project description

Notion2Md logo - an arrow pointing from "N" to "MD"

About Notion2Md

PyPI version

  • Notion Markdown Exporter using official notion api by notion-sdk-py

API Key(Token)

$ export NOTION_TOKEN="{your integration token key}"


$ pip install notion2md

Useage: Shell Command

Terminal output of the notion2md -h command

notion2md -p ~/MyBlog/content/posts -u

Usage: Python

from notion2md.exporter import block_exporter

#output_path is optional
block_exporter("id of notion page","OutPut Path(Relative)")


  • Page Exporter
  • Database Exporter
  • export file object(image and files)
  • export child page


Pull requests are welcome.

  1. folk this repo's develop branch into yours
  2. make changes and push to your develop branch repo
  3. send pull request from your develop branch to this develop branch

"This will be only way to give pull request to this repo. Thank you



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

notion2md-2.2.6.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

notion2md-2.2.6-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page