notion-py
notion-py copied to clipboard
Unofficial Python API client for Notion.so
Hi. I'm looking for a convenient way to retrieve all comments in a workspace. Is there any good way to do this, or should I use `notion.comments.list()` with all `page_id`?
I'm running the following code: ``` from notion.client import NotionClient client = NotionClient(token_v2="") ``` and it fails with the below error: ``` File /opt/homebrew/Caskroom/mambaforge/base/envs/notion/lib/python3.11/site-packages/notion/client.py:77, in NotionClient.__init__(self, token_v2, monitor, start_monitoring, enable_caching,...
I am getting this error when I am trying to instantiate a NotionClient with a token gotten from a browser cookie. from notion.client import NotionClient client = NotionClient(token) I am...
Likely, the v2 token used to authenticate the notion.so client does change frequently (not sure how often). What is the best way to keep the token up to date unattended?
1. Working evironment - Win10 64bit - Python 3.8.7 32-bit - write script and run on VSCODE 2. Symptom - pylint pointed out that `from notion.client import NotionClient` is having...
``` python from notion.client import NotionClient # Obtain the `token_v2` value by inspecting your browser cookies on a logged-in (non-guest) session on Notion.so client = NotionClient(token_v2="tonken_from_header") # Replace this URL...
#292 although setting a new fixed limit works, adding an optional limit argument would be better if notion decide to change the query limit in the future.
Requesting a certain amount of 'loadpagechunk' will result in '429 Too Many Requests Error'. It didn't happen before, but this error has occurred since recently.
 As The Picture Shown, It Seems To Have An Encoding Error When I Tried To Run It..  And This Error Is Not About The Directory Error ... -...