From cfa83ba8809b7fa46fa44bcbfd8b233beb1c5209 Mon Sep 17 00:00:00 2001 From: gavin Date: Tue, 16 Jun 2020 14:13:35 +0800 Subject: [PATCH] kindle manager --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index 48d602e..dfd412c 100755 --- a/README.md +++ b/README.md @@ -131,6 +131,8 @@ vi re: ### dict data structure ``` +book data structure + book = { "bookname_xxx": { @@ -168,6 +170,35 @@ book = } ``` +``` +words datastructure + +words_data = [bookinfo, words, lookups] +bookinfo = { 'book_key': { + 'bookname':'bookname_xxx', + 'author':'author_xxx'},} + words = { 'word_id': { + 'word':'xxx', + 'category':0}, + } + lookups = [['id','word_key','book_key','pos','usage','timestamp'], + ['id','word_key','book_key','pos','usage','timestamp'],] +``` + +``` + +book information grabed from douban +{ +"25853071": { # sid + "link":"https://....xxxxx" + "bookname": "庆余年", + "img": "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2575362797.jpg", + "rate": "8.0", + "author": "猫腻" +},...} + +``` + ### Markdown文本 ### ```