Quote:
Originally Posted by slm
Last update: February 14 2025
If you have lots to download, and are on Amazon.com or Amazon.o.uk, the script here on github will allow you to bulk download all your ebooks.
It is a python script, so you will need to have Python 3 installed, along with three other packages (given in the documentation at github).
|
Ok, I need help with this. I have KUbuntu. I have gotten a virtual python install up. I have installed this, and the requirements. I have installed the xvfb package.
python3 bookp.py --email
keybounce@gmail.com --verbose --showbrowser
results in (after asking for my password, etc) a chromium window being opened, stating that it is being controlled by automated test software, and then nothing else happens. After about a minute, it closes, and the script exits without downloading anything.
(NB: I have no idea how to get my Oauth token, if that would help.)
Code:
[INFO] 2025-02-24 03:14:47,265 Starting browser
Traceback (most recent call last):
File "/home/user/Documents/dev/BulkKindleUSBDownloader/bookp.py", line 345, in <module>
sys.exit(main())
^^^^^^
File "/home/user/Documents/dev/BulkKindleUSBDownloader/bookp.py", line 307, in main
cookies, csrf_token, custid = create_session(
^^^^^^^^^^^^^^^
File "/home/user/Documents/dev/BulkKindleUSBDownloader/bookp.py", line 88, in create_session
browser = webdriver.Chrome(options=options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Python/lib/python3.12/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in __init__
super().__init__(
File "/home/user/Python/lib/python3.12/site-packages/selenium/webdriver/chromium/webdriver.py", line 66, in __init__
super().__init__(command_executor=executor, options=options)
File "/home/user/Python/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 250, in __init__
self.start_session(capabilities)
File "/home/user/Python/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 342, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Python/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 429, in execute
self.error_handler.check_response(response)
File "/home/user/Python/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py", line 232, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: DevToolsActivePort file doesn't exist
Stacktrace:
#0 0x59f7aa50753a <unknown>
#1 0x59f7aa002f00 <unknown>
#2 0x59f7aa03fb24 <unknown>
#3 0x59f7aa03a589 <unknown>
#4 0x59f7aa0364b6 <unknown>
#5 0x59f7aa0837b6 <unknown>
#6 0x59f7aa082e06 <unknown>
#7 0x59f7aa077343 <unknown>
#8 0x59f7aa04478a <unknown>
#9 0x59f7aa0459de <unknown>
#10 0x59f7aa4d12cb <unknown>
#11 0x59f7aa4d5242 <unknown>
#12 0x59f7aa4be7ac <unknown>
#13 0x59f7aa4d5df7 <unknown>
#14 0x59f7aa4a2b2f <unknown>
#15 0x59f7aa4f61a8 <unknown>
#16 0x59f7aa4f6370 <unknown>
#17 0x59f7aa5063b6 <unknown>
#18 0x7264bee9caa4 <unknown>
#19 0x7264bef29c3c <unknown>