Links

Get database

Tags: #notion #productivity #naas_drivers #operations #snippet
Author: Maxime Jublou​
Last update: 2023-04-12 (Created: 2021-08-23)
Description: Notion is a powerful database tool that helps you organize and store your data in an intuitive and efficient way.

Input

Import library

from naas_drivers import notion

Setup Notion

# Enter Token API
token = "*****"
​
# Enter Database URL
database_url = "https://www.notion.so/********"

Model

Get database from Notion

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

Output

Database object

database

Dataframe

df_notion = database.df()
df_notion