Skip to content

Dump the vocabulary from the Kindle and upload to the lingualeo.com

Notifications You must be signed in to change notification settings

yottatsa/kindle_lingualeo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinguaLeo API

Implementation from https://raw.githubusercontent.com/relaxart/LeoPort/a2592025284d5d179168e096e4aa1fc259c6b905/service.py

URLs:

https://api.lingualeo.com/api/login
https://api.lingualeo.com/addword
https://lingualeo.com/userdict/json?page=
https://api.lingualeo.com/gettranslates?word=

Kindle Schema

"SELECT * "
"FROM lookups "
"INNER JOIN words ON words.id = lookups.word_key "
"INNER JOIN book_info ON book_info.id = lookups.book_key "
"WHERE words.lang = 'en'")
  1. CR!D6DH2Q917N5WQ2784ZJPRGQ3Q7WJ:C8F6A18F:272634:13
  2. en:Vanderbilt
  3. CR!D6DH2Q917N5WQ2784ZJPRGQ3Q7WJ:C8F6A18F
  4. B0053VMNY2
  5. 272634
  6. And when someone asked him why he went and bought himself such a dinky little yacht, he just looked at the guy and said, ‘What do you think I am, a Vanderbilt?'
  7. 1450695976915
  8. en:Vanderbilt
  9. Vanderbilt
  10. Vanderbilt
  11. en
  12. 0
  13. 1450695976901
  14. empty
  15. CR!D6DH2Q917N5WQ2784ZJPRGQ3Q7WJ:C8F6A18F
  16. B000FBJCJE
  17. CR!D6DH2Q917N5WQ2784ZJPRGQ3Q7WJ:C8F6A18F
  18. en
  19. Snow Crash (Bantam Spectra Book)
  20. Stephenson, Neal

Lookups

CREATE TABLE LOOKUPS (
    id TEXT PRIMARY KEY NOT NULL, # CR!D6DH2Q917N5WQ2784ZJPRGQ3Q7WJ:C8F6A18F:272634:13
    word_key TEXT, # en:Vanderbilt
    book_key TEXT, # CR!D6DH2Q917N5WQ2784ZJPRGQ3Q7WJ:C8F6A18F
    dict_key TEXT, # B0053VMNY2
    pos TEXT, # 272634
    usage TEXT, # And when someone asked him why he went and bought himself such a dinky little yacht, he just looked at the guy and said, ‘What do you think I am, a Vanderbilt?'
    timestamp INTEGER DEFAULT 0 # 1450695976915
);

Words

CREATE TABLE WORDS (
    id TEXT PRIMARY KEY NOT NULL, # en:Vanderbilt
    word TEXT, # Vanderbilt
    stem TEXT, # Vanderbilt
    lang TEXT, # en
    category INTEGER DEFAULT 0, # 0 is new, 100 is mastered
    timestamp INTEGER DEFAULT 0, # 1450695976901
    profileid TEXT
);

Book info

CREATE TABLE BOOK_INFO (
    id TEXT PRIMARY KEY NOT NULL,
    asin TEXT,
    guid TEXT,
    lang TEXT,
    title TEXT,
    authors TEXT
);
CR!D6DH2Q917N5WQ2784ZJPRGQ3Q7WJ:C8F6A18F|B000FBJCJE|CR!D6DH2Q917N5WQ2784ZJPRGQ3Q7WJ:C8F6A18F|en|Snow Crash (Bantam Spectra Book)|Stephenson, Neal

Dict info

CREATE TABLE DICT_INFO (
    id TEXT PRIMARY KEY NOT NULL,
    asin TEXT,
    langin TEXT,
    langout TEXT
);
B0053VMNY2|B0053VMNY2|en|en

Metadata

CREATE TABLE METADATA (
    id TEXT PRIMARY KEY NOT NULL,
    dsname TEXT,
    sscnt INTEGER,
    profileid TEXT
);
BOOK_INFO|BOOK_INFO|700|
DICT_INFO|DICT_INFO|10|
WORDS|WORDS|704|
LOOKUPS|LOOKUPS|708|

Version

CREATE TABLE VERSION (
    id TEXT PRIMARY KEY NOT NULL,
   dsname TEXT,
   value INTEGER
);
WORDS|WORDS|1
LOOKUPS|LOOKUPS|0
DICT_INFO|DICT_INFO|0
BOOK_INFO|BOOK_INFO|0
METADATA|METADATA|1

Glossary

ASINs

Amazon Standard Identification Numbers (ASINs) https://www.amazon.com/gp/seller/asin-upc-isbn-info.html

About

Dump the vocabulary from the Kindle and upload to the lingualeo.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages