I attempted to use this python package to download my books, and being my first time doing anything fancy in Python on my linux system, I found out that Debian systems disable user installs of new packages (pip and other python installers) to avoid breaking system behavior.
Never having had to worry about this before, what is the best way to proceed? I am aware that this is a last day thing now, can you help me out please?
Code:
user@NS70PU:~/Downloads/kindle$ python3 kindle.py
python3: can't open file '/home/user/Downloads/kindle/kindle.py': [Errno 2] No such file or directory
user@NS70PU:~/Downloads/kindle$ apt install python3-kindle
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
user@NS70PU:~/Downloads/kindle$ sudo !!
sudo apt install python3-kindle
[sudo] password for user:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3-kindle
user@NS70PU:~/Downloads/kindle$ sudo apt install python3-kindle.py
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3-kindle.py
E: Couldn't find any package by glob 'python3-kindle.py'
user@NS70PU:~/Downloads/kindle$
Quote:
Originally Posted by Fraccy
I was able to automate the download of my ~2400 Kindle books using the command line utility from https://github.com/yihong0618/Kindle_download_helper
Log in to your Amazon account > Manage Your Content and Devices
Copy the cookie and save it to a file ('cookie.txt'): https://github.com/yihong0618/Kindle...rieving-cookie
Execute the Python utility (this example accesses amazon.co.uk):
Code:
python kindle.py --cookie-file cookie.txt --uk -o DOWNLOADS --device_sn [Your Kindle serial no.] --mode all
You can also download a JSON list containing details of all your Kindle books:
Code:
python kindle.py --cookie-file cookie.txt --uk --list --device_sn [Your Kindle serial no.]
There are other methods outlined in the README, but this worked best for me.
|