yuque-exporter icon indicating copy to clipboard operation
yuque-exporter copied to clipboard

A tool for exporting Yuque documents as markdown.

Results 11 yuque-exporter issues
Sort by recently updated
recently updated
newest added

## 文件名比对不通过导致的Time Out问题 语雀导出Markdown时以文章名作为文件名,但不可避免有文章名中出现了特殊字符而不能作为文件名的情况,因此语雀会使用下划线‘_’替代特殊字符。然而在该项目export.js源文件waitForDownload函数里,参数mdname是将特殊字符用空格替代了的文件名字符串,参数filename是下载时语雀使用下划线替代的字符串,因此filename和mdname的比较不通过。最终,waitForDownload函数则因为文件名不一致找不到想要的文件,三次重试以后导致Time Out。 一个简单的解决方式是将文件名中的符号字符都过滤掉,只保留中英文字符和数字,这样比较不容易出错。(你说:“我就喜欢拿标点符号做文件名咋办?” 那这方法不行,我没辙了,自己摸索语雀文件名替换规则一个个换吧) 打过补丁的代码waitForDownload函数代码如下: ```javascript async function waitForDownload(rootPath, book, mdname, started = false) { const timeout = 10000; // 10s timeout let filteredMdname = mdname.replace(/[^0-9a-zA-Z\u4e00-\u9fa5]/g, "");...

因为我的知识库文档内容太多,整体下载会卡死或超时。 可以在 getAllBooks 函数中,拿到 bookData 数据后,进行判断,只下载需要的 books 知识库。 code:if (object.books[i].id ===id) { 通过 https://www.yuque.com/api/mine/book_stacks 接口获取 全部 bookData内容,得到book_id。 通过 https://www.yuque.com/api/catalog_nodes?book_id=xxx + id 可以得到当前知识库的全部文章列表 getBookDetail 内容。

手里买的软件有新旧好多版本,但是对方的文档里一直只有最新版,有些老版本已经部署了,想把老版本文档保存备份一下

puppeteer postinstall$ node install.js │ ERROR: Failed to set up Chromium r1108766! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download. │ Error: read ECONNRESET │ at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) { │ errno:...

https://blog.csdn.net/weixin_52992693/article/details/135784406

``` Waiting download document to files\运维开发学习记录\笔试面试\面试经验 Error: Download timed out at Timeout._onTimeout (file:///C:/Users/fuyuanyuan/Downloads/yuque-exporter-master/src/export.js:123:20) at listOnTimeout (node:internal/timers:573:17) at process.processTimers (node:internal/timers:514:7) Retrying download... (attempt 3) ``` 所有文件都显示下载错误,文件标题中没有特殊字符

大佬一直报错是怎么回事呀 Login use user + password... file:///E:/AIproject/yuque-exporter/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js:158 return new TimeoutError(errorMessage); ^ TimeoutError: Navigation timeout of 30000 ms exceeded at LifecycleWatcher._LifecycleWatcher_createTimeoutPromise (file:///E:/AIproject/yuque-exporter/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js: 158:12) at async Frame.waitForNavigation (file:///E:/AIproject/yuque-exporter/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.js:252:23) at async CDPPage.waitForNavigation (file:///E:/AIproject/yuque-exporter/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js:445:16)...

是否可行呢? 没有文档创建时间或者最新修改时间 的话有点不好跟踪

windows环境执行node main.js 这步总是返回超时错误。 不知道是什么原因。 我这用户名是手机号码,是不是手机号码要加86之类的? Login use user + password... file:///C:/Windows/System32/yuque-exporter/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js:158 return new TimeoutError(errorMessage); ^ TimeoutError: Navigation timeout of 30000 ms exceeded at LifecycleWatcher._LifecycleWatcher_createTimeoutPromise (file:///C:/Windows/System32/yuque-exporter/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js:158:12) at async Frame.waitForNavigation (file:///C:/Windows/System32/yuque-exporter/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.js:252:23) at...

I have successfully logged in and all the book stacks are read, so all articles are listed without error. But when it comes to download and export all books, it...