trying to pull an entire workspace, so using the pageid of the workspace page. Always getting "KeyError" as follows:
2022-02-04 09:29:32,033 INFO: ๐ค Notion authentification completed successfully.
2022-02-04 09:29:32,034 INFO: ๐ค Started raw notion content parsing.
2022-02-04 09:29:38,845 INFO: ๐ค Downloaded raw notion content. Saved at ./notion_content.json
2022-02-04 09:29:38,845 INFO: ๐ค Started structuring notion data
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/homebrew/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/techyogi/Desktop/notion4ever/notion4ever/main.py", line 102, in
main()
File "/Users/techyogi/Desktop/notion4ever/notion4ever/main.py", line 74, in main
structured_notion = structuring.structurize_notion_content(raw_notion,
File "/Users/techyogi/Desktop/notion4ever/notion4ever/structuring.py", line 495, in structurize_notion_content
markdown_parser.parse_markdown(raw_notion, structured_notion)
File "/Users/techyogi/Desktop/notion4ever/notion4ever/markdown_parser.py", line 372, in parse_markdown
page_md = blocks_convertor(raw_notion[page_id]["blocks"], structured_notion, page_id)
File "/Users/techyogi/Desktop/notion4ever/notion4ever/markdown_parser.py", line 139, in blocks_convertor
block_md = block_convertor(block,0, structured_notion, page_id)
File "/Users/techyogi/Desktop/notion4ever/notion4ever/markdown_parser.py", line 238, in block_convertor
block_md = block_convertor(block, depth, structured_notion, page_id)
File "/Users/techyogi/Desktop/notion4ever/notion4ever/markdown_parser.py", line 238, in block_convertor
block_md = block_convertor(block, depth, structured_notion, page_id)
File "/Users/techyogi/Desktop/notion4ever/notion4ever/markdown_parser.py", line 188, in block_convertor
title = structured_notion['pages'][block['id']]['title']
KeyError: 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'