Comments (3)
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.
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.
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)
- There is a problem with synced block. HOT 3
- Synced block is not supported, but the content is still formatted as markdown.
- Notion2Md doesn't download image files if the image files have same name
- Some Notion2md's API is not working because of its global variables
- export failed HOT 1
- Option to export multiple files HOT 2
- How can I apply this tool under windows environment? HOT 2
- Python usage in Readme is not updated HOT 1
- [Feature] Add in page anchor link support
- No numbered list support HOT 3
- The number of retrieving notion blocks HOT 1
- Returning empty markdown files HOT 3
- ERROR 'text' HOT 3
- Error HOT 4
- 100 blocks limit HOT 4
- pass in token as a parameter to MarkdownExporter HOT 1
- refactor Exporter
- Cat make it work HOT 1
- Add notion.site support HOT 1
- Export Failed: File name too long HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notion2md.