Skip to content

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

License

Notifications You must be signed in to change notification settings

twkrol/notion-backlinks-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages