Get database
Tags: #notion #productivity #naas_drivers
Author: Maxime Jublou

Input

Import library

1
from naas_drivers import notion
Copied!

Setup Notion

1
# Enter Token API
2
token = "*****"
3
4
# Enter Database URL
5
database_url = "https://www.notion.so/********"
Copied!

Model

Get database from Notion

1
database = notion.connect(notion_token).database.get(database_url, query={})
Copied!

Output

Database object

1
database
Copied!

Dataframe

1
df_notion = database.df()
2
df_notion
Copied!
Copy link
Edit on GitHub