Skip to content

Commit

Permalink
Add instructions to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
IRHM authored Aug 2, 2020
1 parent ba222ac commit b552f1d
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
# Notion-Backup
# Notion-Backup
Backup all of your notion notes, and optionally upload them to a git repo.

## Usage

1. Create a folder where you want to export your notion notes to and optionally make it a git repo
2. Run Notion-Backup executable, if you don't want to backup to a git repo append `nogit` to the end of the command (eg. `./Notion-Backup nogit`)
3. (Happens only first time) Enter your API Token (look below on how to get it)
4. (Happens only first time) Enter the path to the folder you created in step 1
5. Done.. providing you have Git installed and it's in your PATH variable (if using git), Notion-Backup will do everything else for you

## Getting your notion API Key

1. Open `Inspect Element` (Ctrl+Shift+I) and go to the `Network tab`
2. Refresh the page (whilst logged in) so network requests show up
3. Click on the `first request` (most of the other requests will also work) and in the new menu click on `Cookies`
4. In `Request Cookies` find `token_v2` and copy its value (eg. `token_v2: "myTokenHere"` in this case, your token is: `myTokenHere`)
5. If you don't see `token_v2`, click on a different request and then repeat step 4
6. Done.. copy your API Token into Notion-Backup

0 comments on commit b552f1d

Please sign in to comment.