Skip to content

BerndtUhlig/notionSnapshot

 
 

Repository files navigation

    _   __      __  _                _____                        __          __ 
   / | / /___  / /_(_)___  ____     / ___/____  ____ _____  _____/ /_  ____  / /_
  /  |/ / __ \/ __/ / __ \/ __ \    \__ \/ __ \/ __ `/ __ \/ ___/ __ \/ __ \/ __/
 / /|  / /_/ / /_/ / /_/ / / / /   ___/ / / / / /_/ / /_/ (__  ) / / / /_/ / /_  
/_/ |_/\____/\__/_/\____/_/ /_/   /____/_/ /_/\__,_/ .___/____/_/ /_/\____/\__/  
                                                    /_/     

📸💥 A CLI tool to export your Notion pages as pretty HTML files

Original page Export through Notion ✨Notion Snapshot✨
image image image

^ the ducks are just placeholders for the images lol (this project is still a work in progress)




How to use

1. Make a publically accessible page

Assuming you already have a www.notion.so account, you can make your pages publicly accessible by clicking on the Share button in the top right corner of the page and toggling the Share to web button.

You will need the generated link for the next step.


2. Clone this repository

git clone https://github.com/sueszli/notionSnapshot.git
cd notionSnapshot

3. Install dependencies

This Python project uses Poetry for dependency management. To install the dependencies install Poetry and then run:

poetry install --sync

Note: If running Poetry isn't enough, you need to install the missing dependencies manually with pip / pip3 (I still have to find a fix for this).


4. Run

Use the -h or --help flag to see all the available options.

Replace the URL with the one you generated in the first step. After runnning the script the exported files will be saved in the snapshots folder.

Unix:

# if you are running Ubuntu in WSL, you must additionally install Chrome like so
sudo apt update && sudo apt upgrade -y
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt --fix-broken install
rm -rf google-chrome-stable_current_amd64.deb

python3 notionsnapshot https://eager-waterfall-308.notion.site/Loconotion-Example-03c403f4fdc94cc1b315b9469a8950ef

Windows:

py notionsnapshot https://eager-waterfall-308.notion.site/Loconotion-Example-03c403f4fdc94cc1b315b9469a8950ef




Thank you

I hope you enjoy using this project as much as we enjoyed making it. There are a lot of people to thank for this project, so here's a list of everyone who deserves a big thank you:

  • Leonardo Cavaletti and his team for their fantastic work on the Loconotion project, which provided the foundation for this one.
  • All the wonderful individual contributors
  • All the users that reported bugs, and made feature requests, helping to make this project a success

About

Export your Notion pages as HTML files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 73.0%
  • CSS 15.9%
  • JavaScript 11.1%