美文网首页
有道云笔记导出到notion

有道云笔记导出到notion

作者: 上海app开发 | 来源:发表于2021-04-19 15:10 被阅读0次

1 有道云笔记批量导出word
web端登录有道云笔记(https://note.youdao.com/web/),需要导出笔记上:右键→导出到word

file

如果文章比较多,一个一个 导出比较麻烦,可以使用js脚本:

自动选择文章→右键→导出为word→滚动列表

脚本使用方法:

chrome浏览器打开https://note.youdao.com/web/
F12打开开发控制台,切换到Console面板

file
拷贝自动导出脚本,粘贴,Enter;等待自动执行即可
自动导出脚本
var exported = {}
function warn(obj) {console.warn(obj)}
function error(obj) {console.error(obj)}
function send_contextmenu(obj) {
var rect = obj.getClientRects()[0]
var evObj = document.createEvent('MouseEvents');
evObj.initMouseEvent('contextmenu',true,true,window,1,0,0,rect.left,rect.top,false,false,false,false,0,null);
obj.dispatchEvent(evObj);
}
function scrol(obj, y){
var evt = document.createEvent('MouseEvents');
evt.initEvent('wheel', true, true);
evt.deltaY = +y;
var element = obj;
element.dispatchEvent(evt);
}
var pages = ('.file-item .title'); function download_page(index) { if (index >= pages.length) { newpages =('.file-item .title');
if (newpages.length > pages.length) {
pages = newpages
error('导出下一页,总数:'+index)
} else {
error('导出结束,总数:'+index)
}
}
var obj = pages[index]
var top = obj.getClientRects()[0].top
if (top>500) {
scrol(('.abstract-mode')[0], 300) } var that =(obj)
var title = .trim(that.text()); if (exported[title]) return; console.warn(index+' 导出:'+title) send_contextmenu(obj) setTimeout(function(){ var action =.trim((('.menu-li .menu-label')[6]).text())
if (action == '导出为Word') $('.menu-li .menu-label')[6].click()
else error(action +' 不支持')
index++
download_page(index)
},3000)
}
function start() {
warn('开始导出,总数:' + pages.length)
download_page(0)
}
start()
2 word导入notion中
notion中创建一个页面,右上角点点点中选择→import→word,option里面选择 all files:
file

导入后是一个一个页面,可以右键Move To 到你想归纳的节点中

相关文章

网友评论

      本文标题:有道云笔记导出到notion

      本文链接:https://www.haomeiwen.com/subject/ejbilltx.html