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?
- Image captions should become MD alt image text, not a separate paragraph
- Would require exporting everything ourselves, paragraph after image is ambiguous
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
File details
Details for the file notion_export_enhancer-0.0.7.tar.gz
.
File metadata
- Download URL: notion_export_enhancer-0.0.7.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12955dbd418e266a876afba7ff5cde623568d8864d5f984fd5c76cf822e4fdda |
|
MD5 | 15023c31069cb0d28db02be5b022a9c0 |
|
BLAKE2b-256 | c4dae05471e5b0eaca85e66ae0f0d3365b8cd7ca8717ff51e96f136eb9e7cbc9 |
File details
Details for the file notion_export_enhancer-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: notion_export_enhancer-0.0.7-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2816f837feae2aa6d7939cd907e54a486e645eccc54b903cbc104dbe738722aa |
|
MD5 | f6c732465f5ae082bdd9cb5f433cc15a |
|
BLAKE2b-256 | 1c5aacc3dda7a5a8f64d7bfbca4e6a1b0835342927a98b62d96c6b3e07c75e56 |