MerkulovDaniil / notion4ever

🏛 Python tool for export all your content of Notion page using official Notion API. Includes: all nested subpages, markdown files and HTMLs, nice urls, downloading locally all its content.
MIT License
135 stars 9 forks source link

`if start_cursor is None: break` -> `if start_cursor is None or blocks['has_more'] is False: break` #7

Open vadimkantorov opened 9 months ago

vadimkantorov commented 9 months ago

otherwise the API retriever gets into infinite loops sometimes

per documentation, start_cursor field is only valid if has_more is True: https://developers.notion.com/reference/intro#responses