Giter Site home page Giter Site logo

Comments (3)

echo724 avatar echo724 commented on May 18, 2024

Did you export your Notion integration api key as your env variable named "NOTION_TOKEN"? It seems like there was an error when creating notion client object from api key. I will fix showing the error message when it happens. Thanks!

from notion2md.

ashutoshsaboo avatar ashutoshsaboo commented on May 18, 2024

I did that @echo724 and the first part worked! Thanks! However there seems to be one small limitation as well, for page blocks with url in their titles, ex: https://google.com/ (I clip certain pages to my notion, so in that case the title is set to url in some cases). In that case, your script tries to download the markdown file at <input PATH prefix folder>/https://google.com/-<notion_block_id>. Basically it doesn't escape the urls, so it errors out saying FileNotFoundError: [Errno 2] No such file or directory: - i.e, since the http part in url - dir for that doesn't exist (you can reproduce it easily as well).

If possible, can you just use the path as <input path prefix>/<notion block id>.md (that should be unique as well always), without the title as the filename so you don't have to deal with all these scenarios so this gets fixed? @echo724

from notion2md.

echo724 avatar echo724 commented on May 18, 2024

Thank you for the great recommendation. As you said, if the title of the block is not supported as dir name, it will crush. I will fix this. Thank you

from notion2md.

Related Issues (20)

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.