New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError #3
Comments
Indeed, the code was designed to work with some specific page with all nested content inside the page. Need to add the option for exporting the whole workspace. |
Hello ! Kind of a similar problem here : 2022-06-21 19:13:06,788 INFO: 馃 Started structuring notion data I Guess the culprit is quite obvious here : THE EMOJI ! |
Dear MerkuloDanii, First of all, thank for this nice project! |
The same issue found here:
|
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/python@3.9/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/python@3.9/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'
The text was updated successfully, but these errors were encountered: