Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.79 KB

README.md

File metadata and controls

34 lines (28 loc) · 1.79 KB

notion-backlinks-creator

Automates creating backlinks to pages within collections. Helps maintain zettelkasten references.

When would you like to use this tool

In case you have a collection of pages in Notion and you use the 'Link to page' feature to link one page to another, you may want to automatically backlink the latter page to the referencing one. This is usefull if you maintain a zettelkasten store where linking forward and backward is essential.

Example

Let's assume you have a collection of 2 pages: PageA and PageB. Example collection

PageA has link to PageB, but PageB is unaware of PageA. PageA PageB

When you run Notion Backlinks Creator for this collection, it will automatically:

  • determine that PageA have link to PageB (or any other pages pair)
  • find if there is no backlink from PageB to PageA (or any other missing backlinks, even if you deleted them)
  • add backlink from PageB to PageA in the #Backlinks section (will create it if not exist) PageB

Getting started

Follow these steps for pipenv:

  1. Download this python app
  2. Open virtualenv: pipenv shell
  3. Install referenced libraries: pipenv install
  4. Copy config.ini.example to config.ini
  5. Edit config.ini (your api_token and collection_page_url are mandatory)
  6. Run application: python app.py

Disclaimer

This tool can, and probably will modify your Notion data! It was not extensivelly tested, so any errors may occur and you may lost your data. For the first time run it on a simple demo collection to avoid any unwanted data modifications. I'm not responsible for any damages it may cause. You have been warned