Skip to main content

convert notion page content to markdown

Project description

notiontomd

Convert notion page content to markdown

Usage

Quickstart

pip install notiontomd

from notiontomd import NotionToMarkdown

token = os.environ['token']
page_id = os.environ['page_id']

print(NotionToMarkdown(token, page_id).parse())

Feature

Support block:

  • paragraph
  • numbered_list_item
  • bulleted_list_item
  • image
  • code
  • heading_1
  • heading_2
  • heading_3
  • bookmark
  • quote
  • to_do
  • unsupported (The current notion API does not support SimpleTable)
  • child_database
  • divider
  • callout
  • video (thanks for @phuang07)

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

notiontomd-0.2.0.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

notiontomd-0.2.0-py3-none-any.whl (5.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