#ebook #amazon #send #automation #kindle #command-line-tool #web-interface

bin+lib send-to-kindle

A command-line utility and library for sending files to your kindle app or device by (ab)using the www.amazon.com/sendtokindle web interface

2 stable releases

1.0.1 Jan 14, 2023

#8 in #kindle

Download history 26/week @ 2024-07-20 32/week @ 2024-07-27 28/week @ 2024-08-03 8/week @ 2024-08-10 13/week @ 2024-08-17 6/week @ 2024-08-24 1/week @ 2024-08-31 7/week @ 2024-09-07 10/week @ 2024-09-14 35/week @ 2024-09-21 47/week @ 2024-09-28 27/week @ 2024-10-05 47/week @ 2024-10-12 37/week @ 2024-10-19 29/week @ 2024-10-26 33/week @ 2024-11-02

150 downloads per month

Apache-2.0

510KB
206 lines

Send to Kindle

send-to-kindle is a command-line utility and rust library for sending files to your kindle app or devices by (ab)using the www.amazon.com/sendtokindle web interface.

For this reason, it should be used with caution. Getting suspended by Amazon's spam prevention systems is always a possibility. USE send-to-kindle AT YOUR OWN RISK!

Command-line tool basic usage

cargo run -- --username <username> --password <password> --directory <path_to_books>
--extension epub

The --directory flag can be swapped with the --file flag to just send a single file. If an extension is provided, it will ensure that the selected file has the requested extension.

For more info on the command-line utility and flags for corner cases, use the --help flag.

Library usage

Just two functions are provided: One for a list of strings representing the files to be uploaded (send_files_to_kindle), and one for a path to a file or directory that can be filtered using a string for the files' extension (send_to_kindle). (epub, azw3, mobi etc).

For more info, click on each function's definition and read the extensive documentation there.

Dependencies

~20–34MB
~522K SLoC