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

eladve/notion-backlinks-creator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 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 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.

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

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.

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. 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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%