Open JanOwiesniak opened 2 days ago
Thanks for the detailed report. It does seem as though browser-cookie3
is not working. It would be great if you could try to debug it further or check the issues at https://github.com/borisbabic/browser_cookie3/issues, but there isn't much I can do as it works for me (on Mac, Linux and Windows). A minimal test code would be
from browser_cookie3 import chrome
print(chrome(domain_name="amazon.com"))
# Obviously don't post the results from this anywhere
Alternatively, just to get it working for yourself you could at line 100 to kindle2pdf.py
cookies["sesion-id"] = "..." # Get this from the Inspector in Chrome
I'm thinking of adding a manual way to set the cookie for these cases.
Although now I think of it, there may be other cookies required. Will check.
Nah, sorry, a boringly large number of cookies are required.
System
macOS Version 13.6 (22G120) Chrome Version 129.0.6668.101
Issue
I logged in with my Amazon credentials on https://read.amazon.com but it seems like
requests.utils.dict_from_cookiejar(cookies)
returns an empty array.run pip package
ran source code