File size: 461 Bytes
c177a49
 
 
c0de7fe
c177a49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import os
from notion_client import Client

notion = Client(auth=os.getenv("NOTION_API_KEY"))

page_id = '67dd09be5b3b44d694996a75c07ecc26'

response = notion.pages.retrieve(page_id=page_id)

response_body = notion.blocks.children.list(
    block_id=page_id
)

print(response_body)

import streamlit as st


st.title(response['properties']['title']['title'][0]['plain_text'])

st.write(response_body['results'][1]['paragraph']['rich_text'][0]['plain_text'])