Skip to content

So-so. Small util which visualizes exported databases from notion.so

License

Notifications You must be signed in to change notification settings

b0g3r/notion_so_tree

Repository files navigation

notion_so_tree

Extract, process and visualize databases from lovely Notion.so to tree graphs.

Purpose

We use it in Cindicator.com for visualization our OKR. It is a big tree (really big tree) of company objectives which decomposed from a company level to each person level.

Quickstart

Required poetry and graphviz.

Run poetry install, then run

poetry run python notion_so_tree.py --help

Let's pretend that you have notion page with few databases and you want build the tree graph.

Notion page example

First of all extract API_KEY from cookies (field 'token_v2')

Cookie example

Then collect databases view urls with respect to order:

Views example

Okay, now you have enough data to draw graph. You should retrieve data from notion.so API with util command.

poetry run python notion_so_tree.py retrieve <api_key> <cities_link> <apartments_link> <owners_link>

Now you have exported_collections file with json data. Let's draw!

poetry run python notion_so_tree.py draw exported_collections_2019-05-05-12:34:14.json

What's a lovely draw, isn't?

Tree visualization example

About

So-so. Small util which visualizes exported databases from notion.so

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages