Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msuozzo/Lector
An API for your Kindle data
https://github.com/msuozzo/Lector
amazon kindle kindle-data phantomjs
Last synced: about 2 months ago
JSON representation
An API for your Kindle data
- Host: GitHub
- URL: https://github.com/msuozzo/Lector
- Owner: msuozzo
- License: mit
- Created: 2015-08-15T15:49:18.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-09-01T20:41:45.000Z (about 1 year ago)
- Last Synced: 2024-04-26T14:21:50.328Z (5 months ago)
- Topics: amazon, kindle, kindle-data, phantomjs
- Language: Python
- Size: 22.5 KB
- Stars: 296
- Watchers: 12
- Forks: 37
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
- awesome - msuozzo/Lector - An API for your Kindle data (Python)
README
# Lector
An API for your Kindle data.Python bindings are provided but any language that can run the JavaScript
found in `api.py` from within a Kindle Cloud Reader session may easily access
this data.### Dependencies
**PhantomJS**:* macOS (Homebrew)
* ```brew install --cask phantomjs```
* Ubuntu (at least 14.04)
* Guide provided and maintained by @julionc
[here](https://gist.github.com/julionc/7476620)### Usage
```python
import lectorapi = lector.KindleCloudReaderAPI('my_amazon_username', 'my_amazon_password')
my_library = api.get_library_metadata()
book = my_library[0]
book_progress = api.get_book_progress(book.asin)
_, current_page, last_page = book_progress.page_numsprint 'Currently reading %s (Page %d of %d)' % (book.title, current_page, last_page)
```