A package for notion2md
Project description
notion2md
use offical notion api with notion_client
Convert multiple notion pages to markdown files and try to keep the formatting usable.
Usage
don't need download repo, get your Token and export your page:
-
get Internal Integration Token
In https://www.notion.so/my-integrations, create your workspace integration and get token, likesecret_... -
download package with pip3
pip3 install notion-md
- set env variable or input in your terminal:
export NOTION_TOKEN=your token
export NOTION_PAGES=your main page link
you can select a seperate open page for downloading, and put others page links in this page(use Notion: /Link command). Then get this page link, make sure you add the integration to your workspace and all your pages your would export.
- download files use notion_md command:
notion-md
pages are saved to notion2md_files dir, default only download files storaged in notion.
surpported
export markdown files for Gridea-like blog side, supporting properties of notion database pages eg. Tags, Cover.
- normal block(header,list,code,quote,...)
- link page/sub page
- table
- callout
- inline_database(pages)
- image/youtube video/file
- file download(files in notion)
notes
multi-level list items,bookmarks, etc. make synchronous network requests, which take longer than other blocks.- only download files in notion, external links will be ignored.
- for database, only download pages in the database.
- children blocks in callouts will be ignored, simple style is better.
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file notion-md-0.0.2.tar.gz.
File metadata
- Download URL: notion-md-0.0.2.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ce1fcb4b2306055b0d1e63e08529f939f1319a6db1d1677751992d21015d11e
|
|
| MD5 |
6708b2687eb20f8031c8bda3fd17d5e9
|
|
| BLAKE2b-256 |
d6c485fbfb1a4b3e4d69bec5b49b02b8fc15155a1f7b7f0ecb6d6b2bbecc7a23
|
File details
Details for the file notion_md-0.0.2-py3-none-any.whl.
File metadata
- Download URL: notion_md-0.0.2-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef2e860e0f1defa87172cbc039f45387d4f7703d01a6d38f8f0c2c64132ba911
|
|
| MD5 |
080584f7e4e766de249a7e85566c1971
|
|
| BLAKE2b-256 |
3a92747e3a28cdc3d5130b91e8a2750bd1ff74869e4e0ef7391deef6e8615122
|