Skip to main content

Export notion page to markdown using official notion api

Project description

Notion Markdown Exporter 2.1 [Updated]

PyPI version

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

Update v2.1

  • Improved exporting speed by using MultiThreading

API Key(Token)

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

Install

$ pip install notion2md

Useage: Shell Command

notion2md-options

notion2md -p ~/MyBlog/content/posts -u https://notion.so/...

Usage: Python

from notion2md.exporter import block_exporter

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

To-do

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

Contribution

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

notion2md-2.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file notion2md-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: notion2md-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for notion2md-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33d3f788da782107baaf6d85a58c605af6cf97922bc1b254421939569967e90a
MD5 744a974af1ea20288465499af9518907
BLAKE2b-256 a2994101403b7cceb1f2f094d7c3def8ad2b1a722d6e38b4e769fdc45e1e67a2

See more details on using hashes here.

Supported by

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