Git Product home page Git Product logo

kindle_lingualeo's Introduction

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

kindle_lingualeo's People

Contributors

yottatsa avatar

Watchers

 avatar  avatar

kindle_lingualeo's Issues

lost file

Catalina

$ python sync.py
DEBUG:root:Kindle: 1804 records, like {blablabla}
Traceback (most recent call last):
File "sync.py", line 95, in
sync("/Volumes/Kindle/system/vocabulary/vocab.db")
File "sync.py", line 26, in sync
auth = json.load(open("auth.json", "r"))
IOError: [Errno 2] No such file or directory: 'auth.json'

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.