Automates creating backlinks to pages within collections. Helps maintain zettelkasten references.
In case you have a collection of pages in Notion and have a link from one page to another (whether it is a page-link, a page reference, a mention or a url-link), 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.
Let's assume you have a collection of 2 pages: PageA and PageB.
PageA has link to PageB, but PageB is unaware of PageA.
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)
The tool will run recursively on all pages that can be reached from the collection you specify -- including pages that are outside that collection! However, the tool will only work on pages that are in the same workspace as that collection.
Follow these steps for pipenv:
- Download this python app
- Open virtualenv:
pipenv shell
- Install referenced libraries:
pipenv install
- Copy
config.ini.example
toconfig.ini
- Edit config.ini (your api_token and collection_page_url are mandatory)
- Run application:
python app.py
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. This tool will modify collections beyond the collection you specify: it will modify all pages that can be reached from the specified collection by any combination of links, url-links, mentions, etc I'm not responsible for any damages it may cause. You have been warned