-
Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
lastorel
Aug 28, 2023
Replies: 2 comments
-
no = Notion(token=...)
pages = no.databases.db_query("DATABASE_ID")
# here is a list of pages
print(pages.obj)
print(pages.obj[0])
print(pages.obj[0].title)
print(pages.obj[0].properties["ATTRIBUTE_NAME"])
print(pages.obj[0].properties["ATTRIBUTE_NAME"].value)
db = no.databases.get("DATABASE_ID")
db.db_filter(property_name="Status", property_type="status", value="in progress") It will return the same type - Element with PageArray as in the example above
from datetime import datetime
db.db_filter(property_type="last_edited_time", condition="on_or_after", value=datetime(2023, 8, 27)) like that. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
defnone
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
no.databases.db_query("DATABASE_ID")
method. It returns the PageArray with all pages, which includes all attributes.It will return the same type - Element with PageArray as in the example above