Export and _enhance_, takes Notion's export and makes it just a bit more usable.
Project description
Notion Export Enhancer
Takes a Notion.so export .zip and enhances it by:
- Removing all Notion IDs from the end of folders and files
- Adds Unicode Emoji to start of folder/file names if it was in your Notion notes
- Retruncates note titles to 200 characters instead of 50
- Applies Notion's modification time to the file data itself
- Moves root md files into the folder with their name, giving them a name like
!index.md
instead so they sort to the top.
TODO:
- Remove empty notes (ones with only links)?
- Rewrite csv + md tables into md tables where appropriate?
- .exe instead of .py?
Limitations:
- Only supports v11 emojis in icons. Issue
Supports Python 3.6+
Usage from CLI
- Export your notion workspace
- You can export a single workspace from
Settings > [Workspace] Settings > Export Content > Export all workspace content
- You can export a single workspace from
- Choose export option
"Markdown & CSV"
pip install notion_export_enhancer
- Then run like
python -m notion_export_enhancer [token_v2] [path_to_zip]
token_v2
is your Notion.so token, which can be obtained by inspecting your browser cookies on a logged-in (non-guest) session on Notion.so
There are also some configuration options:
--output-path
: Optionally set an output path, otherwise uses the current working directory--remove-title
: Removes the title that Notion adds. H1s at the top of every file (default false)--rewrite-paths
: Rewrite the paths in the Markdown files themselves to match file renaming (default true)
Contributing
See CONTRIBUTING.md
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
Built Distribution
Close
Hashes for notion_export_enhancer-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7a089f838c6a900c80d41d3f7e36f1f559cc50a0e991e930177fbbeaa600455 |
|
MD5 | 20e3935b11941a9ced354ef0e20b557c |
|
BLAKE2b-256 | da54f69bd567d49a025ff89515c0e029ef75d878ca73ae1247166463e852fe83 |
Close
Hashes for notion_export_enhancer-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2d0e2eac3c4b6dccaa2eb7e8bc94b62becf55c4ffa770ef5a796410b34368c9 |
|
MD5 | 89e8c5c3d765aca19fd5fd9fd5f86e8f |
|
BLAKE2b-256 | 75a97b6729a59c664204e37f372f9ba60afe54eddb1fc7b812194e71d35a4584 |