A notion unofficial API tool that can generate TOCs of pages.
中文文档请点击这里。
Make sure you have Python >=3.6 installed. Then install the notion
package:
pip install notion
- Press
F12
in your Chrome browser, then go to Network tab. - Go to
notion.so
, click onwww.notion.so
entry, and copytoken_v2
from your cookies. - Run the script.
python notion_toc.py
Just follow the instructions.
Check the project
tab.