2 releases (1 stable)
1.0.1 | Nov 15, 2024 |
---|---|
0.1.0 | Nov 10, 2024 |
#229 in Text processing
62 downloads per month
27KB
743 lines
notion2html
get your notion pages and turn them into html!
this was made as a proof of concept for my blog (coming soon 👀)
how do I use it?
- make sure you have rust and cargo installed
- install it!
cargo install notion2html
- make a notion integration and get a secret
- find the page you want to convert, open the hamburger menu and under "Connect to" select your app
- get the page id from the url (eg. https://www.notion.so/enymc/Sailing-the-High-Seas-428f22ca736843a992aa699a67787288 should be 428f22ca736843a992aa699a67787288 as the id)
- run it!
NOTION_TOKEN=<your token here> notion2html <page id> > out.html
- your html will now be in
out.html
!
Licensed under MPL 2.0
Dependencies
~5–16MB
~210K SLoC