Giter VIP home page Giter VIP logo

merkulovdaniil / notion4ever Goto Github PK

View Code? Open in Web Editor NEW
116.0 116.0 9.0 10.46 MB

๐Ÿ› 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.

License: MIT License

SCSS 32.93% HTML 16.21% CSS 0.88% Python 49.98%
markdown notion notion-api python static-site

notion4ever's People

Contributors

merkulovdaniil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

notion4ever's Issues

README

WHERE IS README?

P.S. WHERE IS THE LICENCE?

Incorrect webm handling.

On this page we can see incorrect spacing and framing of webm video. Moreover, this file should be downloaded as well as other pictures and files
Screenshot 2023-01-26 at 11 21 24

it does not download files

i encoutner error

ValueError: 'DHNkdRfXoAEp2VD.0.jpg' is not in the subpath of 'C:\\Users\\*\\GitHub\\notion4ever\\_site' OR one path is relative and the other is absolute.

where DHNkdRfXoAEp2VD.0.jpg is the icon for the page

KeyError

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'

Child pages

Hi!

I'm trying to fix support for child pages.

There is structured_notion['pages'][block['id']]['url'] which fails as child_page's are not registered in the structured_notion['pages'] top-level dict

This fails in practice + there is # "child_page": child_page which hints that child_page rendering was not complete / tested

Also, in my case child_page appears to have children itself, and these seem not rendered at all by the existing impl

Could you please comment on the state of support for child pages? Thanks :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.