Open singlerider opened 5 days ago
This seems to have something to do with recent updates to the Chrome browser.
This may fix things in the future, but did not for me when I changed the browser_cookies3
dependency to this ref: https://github.com/borisbabic/browser_cookie3/pull/215
BUT, I was able to add two lines to src/kindle2pdf.py
to force my Firefox session to be used:
cj = browser_cookie3.firefox()
r = requests.get("https://read.amazon.com", cookies=cj)
Now, I have a DRM-free PDF. Action items from this could include the ability to include a preferred browser using a command line flag such as --preferred_browser
, etc.
For the above to work consistently, I also have to add a time.sleep(10)
afterwards or else the session-id
cookie doesn't show up for some reason.
Chrome:
Version 130.0.6723.91 (Official Build) (64-bit)
OS:Arch Linux x86_64
Kernel:Linux 6.11.6-arch1-1
App version: PyPikindle2pdf==0.4.4
Reproduction steps:
killall chrome
)xdg-open https://read.amazon.com
opens browser with valid sessionThis is all I get. No error messages or indication that something is wrong.