GithubHelp home page GithubHelp logo

youdaonoteexport's Introduction

YoudaoNoteExport

导出有道云笔记,保存为JSON和DOCX/XML文件。DOCX/XML文件是笔记的内容,JSON文件是笔记的其它信息(包括标题、创建时间、修改时间等)

使用方法:

python main.py 用户名 密码 [存盘目录 [文件类型]]

文件类型是xml(默认)或docx

举例:

mkdir notes

python main.py 用户名 密码 ./notes docx

在Ubuntu 16.04 + Python 2.7的环境中测试通过。

youdaonoteexport's People

Contributors

hot1232 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

youdaonoteexport's Issues

KeyError: 'fileEntry'

authenticated失败?

环境
Ubuntu 16.04 + Python 2.7

(py27) python main.py email password . docx

<RequestsCookieJar[, <Cookie [email protected] for note.youdao.com/auth>, <Cookie [email protected] for note.youdao.com/login/acc/pe>, <Cookie YNOTE_URS_VERIFY=x for note.youdao.com/login/acc/urs/verify>]>
getRoot:{"canTryAgain":false,"scope":"SECURITY","error":"207","message":"Message[AUTHENTICATION_FAILURE]: User token must be authenticated.","objectUser":null}
Traceback (most recent call last):
File "main.py", line 136, in
sess.getAll(saveDir, doc_type)
File "main.py", line 116, in getAll
rootId = self.getRoot()
File "main.py", line 53, in getRoot
return jsonObj['fileEntry']['id']
KeyError: 'fileEntry'

无法获取根目录数据?

nse = self.post(
'https://note.youdao.com/yws/api/personal/file?method=getByPath&keyfrom=web&cstk=%s' % self.cstk, data=data)

    print(response)
    #print('getRoot:' + response.content)
    jsonObj = json.loads(response.content)

<Response [500]>
Traceback (most recent call last):
File "H:/python/project/cnki/youdaonote.py", line 147, in
sess.getAll(saveDir, doc_type)
File "H:/python/project/cnki/youdaonote.py", line 126, in getAll
rootId = self.getRoot()
File "H:/python/project/cnki/youdaonote.py", line 61, in getRoot
return jsonObj['fileEntry']['id']

importError

Traceback (most recent call last):
File "main.py", line 3, in
import requests
ImportError: No module named requests

请问这个怎么解决啊?本人对python没什么了解。我的系统版本是ubuntu16.04;python版本是2.7.12
这个插件很有用,感谢你的付出!

Incorrect title

The title of each notes is not correct, can i do anything to get the right titles?
Titles are like "B28E2F39481A4904AA75014D00AB8A9E","B6822D15AC69468CA7787E6DBB38DDED" and so on.
At last, THX for your contribution :D

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.