有道云笔记导出到notion

1 有道云笔记批量导出word

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

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/d14e5fd8-3ae6-4dc1-b017-6dfbaf381485/Untitled.png

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

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

脚本使用方法:

  1. chrome浏览器打开https://note.youdao.com/web/

  2. F12打开开发控制台,切换到Console面板

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4efa33c1-e1e7-4f84-a97d-0532161012d7/Untitled.png

  3. 拷贝自动导出脚本,粘贴,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:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/fd67a9d5-8974-4474-8f0d-9fab69976416/Untitled.png

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

本文由博客一文多发平台 OpenWrite 发布!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值