subdavis / kobo-book-downloader

A tool to download and remove DRM from your purchased Kobo.com ebooks and audiobooks.
https://pypi.org/project/kobodl/
The Unlicense
311 stars 31 forks source link

403 Client Error + Failed to execute script #112

Open aydenjett opened 3 months ago

aydenjett commented 3 months ago

Describe the issue I cannot download any audiobooks from my library. I have reinstalled/updated kobodl and python, removed my user and re-added/authorized, removed extra logins from my kobo account so only the rakuten email is left, closed all browsers when trying to download, and tried --get-all instead of specific book ids.

To Reproduce Steps to reproduce the behavior:

  1. Download kobodl
  2. Copy file into Windows Powershell
  3. Add "book get " and hit enter
  4. See both errors "HTTPError: 403 Client Error: Forbidden for URL" and "Failed to execute script 'main' due to unhandled exception!"

Expected behavior Book begins to download to chosen directory

Screenshots Screenshot 2024-03-29 175909

Desktop (please complete the following information):

Additional context I downloaded two audiobooks the normal way just over a month or or so ago and haven't really touched my desktop since, so I'm not sure what's wrong or different now. I feel like I've looked everywhere online and tried every fix I found. I also am incredibly new to github/python/code (literally only got into it for this app), so please be patient if I don't understand something right away. Thanks in advance!!

seeba8 commented 2 months ago

I can reproduce your error exactly. Interestingly, I was able to download a book using the docker image provided with the following invocation:

 sudo docker run --rm -it --user $(id -u):$(id -g) -v /home/me/kobodl:/home/downloads  -v /home/me/.config:/home/config   ghcr.io/subdavis/kobodl   --config /home/config/kobodl.json book get {bookid} --output-dir /home/downloads

If you feel like diving into a docker setup, this might be a viable workaround for you.

Edit: I forked the repo and updated dependencies until I got it to build with python3.11 on Windows 11. With that version, I was able to download my audiobooks again. I have not tested any other features, so I am hesitant to create a merge request with my changes. FWIW though, here's the commit: https://github.com/seeba8/kobo-book-downloader/commit/0a2a3278e6abf5782e152b258bc96534e60c8052

In theory, I could provide you the .exe it built, but I have no idea how to get it to you, and like I said, I have not tested any of the other features.

Tenshi-lab commented 2 weeks ago

The problem is happening again. I managed to create an .exe from your files. How do I update them? Or is there another solution?