A simple way to manage your Notion pages with Git. For example, back up your notes or deploy them on GitHub Pages.
-
Run
pip3 install -r requirements.txt
in Terminal. -
Duplicate
config.example.py
toconfig.py
and set your configurations.TOKEN = '123456' # Notion token PAGE = "Notes" # name of the main page TYPE = 'markdown' # 'markdown' or 'html' PROXY = 'socks5://localhost:8888' # set to NONE if you don't need it LOCAL = '/Users/bugenzhao/Documents/Notes' # repo's local path REMOTE = 'https://github.com/BugenZhao/Notes.git' # remote repo PRESERVED = ["README.md"]
Find your browser's cookies to get the Notion
token_v2
. For further instructions, visit Step 1 here. -
Run
python3 ./main.py