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
347 stars 33 forks source link

Fix 403 authorization errors #128

Open Teuns opened 2 days ago

Teuns commented 2 days ago

Probably related: #127

For some reason the authentication process returns 403 errors all of a sudden. I think this is due to CloudFlare blocking the requests automatically. This branch solves it by using urllib instead of requests in the specific faulty requests, as pointed out in a StackOverflow post](https://stackoverflow.com/a/74674276).

lubomir-brindza commented 1 day ago

I can confirm that this PR does fix the login issue for me, nice work :)

@subdavis apologies for barging in here, I just know from the related issues that you're not affected / able to reproduce this

bybpow commented 1 day ago

Please merge this soon. I reseted my account and now I can't add a user or download. Thanks for your work.

chewi commented 1 day ago

This doesn't seem to fix it for me, but I'm seeing it on the download request.

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://storedownloads.kobo.com/download?downloadToken=XXXXXXXX
subdavis commented 1 day ago

Thanks everyone for your involvement in this fix. I'll get this merged and released later this evening.