Export notion page to markdown using official notion api
Project description
Notion Markdown Exporter 2.0 [Updated]
- Notion Markdown Exporter using official notion api by notion-sdk-py
API Key(Token)
-
Before getting started, create an integration and find the token. → Learn more about authorization.
-
Then save your api key(token) as your os environment variable
$ NOTION_TOKEN="{your integration token key}"
Install
$ pip install notion2md
Useage: Shell Command
notion2md
>>Enter Notion Url: URL
Usage: Python
from notion2md.exporter import block_exporter
#output_path is optional
block_exporter(target_id,output_path)
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
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for notion2md-2.0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffc08a06ddc3132031a3944fd7d841162fb78a550bfe0af4a3b88058a856123d |
|
MD5 | 61f0deebc132e2480c691a9823fbfac7 |
|
BLAKE2b-256 | be13429baefa45f3dad8f2e1b160b5013d16fc7d715f18a64e950b441f3dc797 |