Skip to main content

Notion Markdown Exporter with Python Cli

Project description

Notion Markdown Exporter 2.2 [Updated]

PyPI version

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

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 Distribution

notion2md-2.2.3.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

notion2md-2.2.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file notion2md-2.2.3.tar.gz.

File metadata

  • Download URL: notion2md-2.2.3.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/1.7.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.9

File hashes

Hashes for notion2md-2.2.3.tar.gz
Algorithm Hash digest
SHA256 a04bd42cea6057f395e2f7dbad26a645afb0854adab1b0101be05d76ab77c121
MD5 8f605a4aeed4a4346c5099bc29cf0f9a
BLAKE2b-256 52d2b7aa11667bcdffb07e864e1feccccf6e970865e8be4ab838073339659226

See more details on using hashes here.

File details

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

File metadata

  • Download URL: notion2md-2.2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/1.7.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.9

File hashes

Hashes for notion2md-2.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 213ef69322b97c818dbaff3e7c9fe88b2b7cd3530cfd0ddb612d40c5dd7455c5
MD5 f09a38c355d237679ff1b36dd802750a
BLAKE2b-256 1e5a953fca4e4540f678be508c38559d4723a3d4cb23459f581dd734b6f50019

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