A small utility command line application that can recursively download Notion pages

Overview

notionbackup

A small utility command line application that can recursively download Notion pages.

I needed something scriptable that could periodically download my whole Notion workspace for backup purposes.

I have written a small blog post about this tool if you want to check it out: Automate your Notion backups

How To Use

Build it yourself or download a pre-built binary from the Releases page.

Set the following env variables

  • NOTION_TOKEN (the token_v2 cookie value, just google "notion token_v2")
  • NOTION_PAGEID (the id of the page you want to download recursively)
  • Optional NOTION_EXPORTDIR (the folder where the created .zip file should be placed in, defaults to the current directory)
    • Only specify the directory, the filename will be created for you
  • Optional NOTION_EXPORTTYPE ("html" or "markdown", defaults to markdown)

Now you can just run ./notionbackup.

Building

Clone this repository and then run go build -o notionbackup -ldflags="-s -w" app.go

Special Thanks

Issues
  • API Export Error

    API Export Error

    This was working brilliantly for me for a while, and then, after I'm presuming a change in Notion's API, I've started getting the error from the log below. Would be fantastic if you could take a look. Thanks in advance!

    2022/04/27 20:12:16 notionbackup (v1.0.0) | Starting the export process ...
    2022/04/27 20:17:56 http.Post('https://www.notion.so/api/v3/getTasks') returned non-200 status code of 502
    
    opened by kennywasafk 5
Owner
Shayan
Software Engineer in the medical industry πŸ’‰
Shayan
A command line tool that builds and (re)starts your web application everytime you save a Go or template fileA command line tool that builds and (re)starts your web application everytime you save a Go or template file

# Fresh Fresh is a command line tool that builds and (re)starts your web application everytime you save a Go or template file. If the web framework yo

null 0 Nov 22, 2021
Command-line tool to organize large directories of media files recursively by date, detecting duplicates.

go-media-organizer Command-line tool written in Go to organise all media files in a directory recursively by date, detecting duplicates.

Allan Avelar 8 Jan 6, 2022
πŸ“· Command-line utility to download all photos from Instagram

Instagram Downloader This is a simple command-line tool, written in Go, to download all images from an Instagram account. Getting Started Install inst

Gregory Schier 21 May 31, 2022
You-Get is a tiny command-line utility to download media contents (videos, audios, images) from the Web,

You-Get NOTICE: Read this if you are looking for the conventional "Issues" tab. You-Get is a tiny command-line utility to download media contents (vid

Mort Yao 44.3k Jun 26, 2022
πŸ“₯ Command-line tool to download videos from hanime.tv

hanime Command-line tool to download videos from hanime.tv Requirements Installation Install via go get Install from source Install from release Usage

私はレγ‚ͺンです 26 Jun 18, 2022
Command-line program to download videos from YouTube.com and other video sites

youtube-dl - download videos from youtube.com or other video platforms INSTALLATION DESCRIPTION OPTIONS CONFIGURATION OUTPUT TEMPLATE FORMAT SELECTION

youtube-dl 111.3k Jul 6, 2022
An open-source GitLab command line tool bringing GitLab's cool features to your command line

GLab is an open source GitLab CLI tool bringing GitLab to your terminal next to where you are already working with git and your code without switching

Clement Sam 2k Jun 25, 2022
A command line tool to prompt for a value to be included in another command line.

readval is a command line tool which is designed for one specific purposeβ€”to prompt for a value to be included in another command line. readval prints

Venky 0 Dec 22, 2021
cli tools for list all pages in logseq repo, marked with public or private

logseq-pages A cli tool for list all pages in logseq repo, marked with public or private. When I using logseq to build my knowledge base and publish p

null 3 Jun 14, 2022
A command line utility for generating language-specific project structure.

hydra hydra is a command line utility for generating language-specific project structures. ⏬ ✨ Features Build project templates with just one command

Shravan 18 Oct 8, 2021
Hosty is a command-line utility that allows for fast inspection and editing of /etc/hosts-like files

Hosty Description Hosty is a command-line utility that allows for fast inspection and editing of /etc/hosts-like files. It is written in golang and us

null 11 Sep 3, 2021
πŸ”„ A command-line utility to export Protocol Buffers (proto) files to YAML, and JSON

proto2yaml ?? A command-line utility to export Protocol Buffers (proto) files to YAML, and JSON. Currently supported exports are for: Packages Service

Kristof Kowalski 9 Jun 22, 2022
Aces is a command line utility that lets you encode any file to a character set of your choice.

Aces Any Character Encoding Set Aces is a command line utility that lets you encode any file to a character set of your choice. For example, you could

Ishan Goel 10 Jan 2, 2022
A command line utility and library for generating professional looking invoices in Go.

ginvoicer A command line utility and library for generating professional looking invoices in Go. This is a very rough draft and there could still be b

Avi Zimmerman 11 Nov 14, 2021
πŸ“ˆ A command-line utility to interact with TradingView

tvctl ?? A command-line utility to interact with TradingView. This utility aims to improve usability of tedius and repetative tasks, such as watchlist

Kristof Kowalski 3 Mar 1, 2022
ls Xtended : A command line utility which lets you navigate through terminal like a pro 😎.

Navigate through terminal like a pro ?? ?? Demo β€’ βš—οΈ Installation β€’ ?? Contribution β€’ ❗ Known Issues ❓ Why? It's a pain to cd and ls multiple times to

Souvik 156 Jun 28, 2022
Portal is a quick and easy command-line file transfer utility from any computer to another πŸ–₯️ 🌌 πŸ’»

Portal is a quick and easy command-line file transfer utility from any computer to another ??️ ?? ??

Zino Kader 146 Jul 1, 2022
A command line utility for labeling GitHub issues and pull requests

A command line utility for labeling GitHub issues and pull requests

Jim Schubert 3 Nov 12, 2021
Command-line utility to grab Github gists from your own account.

gistfetch Command-line utility to grab Github gists from your own account. How do I use this? Add an API token with permissions to read Gists Fetch th

null 1 Dec 14, 2021