Spaces:
Sleeping
Sleeping
File size: 474 Bytes
61bbc50 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import os
from notion_client import Client
notion_api_key = os.environ.get("NOTION_API_KEY")
notion = Client(auth=notion_api_key)
page_id = '67dd09be5b3b44d694996a75c07ecc26'
response = notion.pages.retrieve(page_id=page_id)
response_body = notion.blocks.children.list(
block_id=page_id
)
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']) |