Quote:
Originally Posted by Jedi425
Hey folks, I updated an old mass download script to work with Amazon's current scheme. You can find it here:
https://github.com/Jedi425/BulkKindl...er/tree/master
I've only tested it on Linux, so no idea if it works in Windows PowerShell/CMD.
You can also specify ASINs to download.
Get downloading, everyone!
|
IIUC, the script cannot find the login button or something
Code:
Traceback (most recent call last):
File "/Users/daniel/Downloads/BulkKindleUSBDownloader/bookp.py", line 240, in <module>
sys.exit(main())
~~~~^^
File "/Users/daniel/Downloads/BulkKindleUSBDownloader/bookp.py", line 209, in main
cookies, csrf_token, custid = create_session(args.email, password, oath,
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
browser_visible=args.showbrowser, proxy=args.proxy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/Downloads/BulkKindleUSBDownloader/bookp.py", line 36, in create_session
browser.find_element(By.CSS_SELECTOR,'#gw-sign-in-button > span > a').click()
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/Downloads/BulkKindleUSBDownloader/venv/lib/python3.13/site-packages/selenium/webdriver/remote/webdriver.py", line 888, in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/daniel/Downloads/BulkKindleUSBDownloader/venv/lib/python3.13/site-packages/selenium/webdriver/remote/webdriver.py", line 429, in execute
self.error_handler.check_response(response)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/Users/daniel/Downloads/BulkKindleUSBDownloader/venv/lib/python3.13/site-packages/selenium/webdriver/remote/errorhandler.py", line 232, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"#gw-sign-in-button > span > a"}
(Session info: chrome=133.0.6943.99); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
0 chromedriver 0x0000000100de6bac cxxbridge1$str$ptr + 2724820
1 chromedriver 0x0000000100ddf20c cxxbridge1$str$ptr + 2693684
2 chromedriver 0x0000000100945afc cxxbridge1$string$len + 93348
3 chromedriver 0x000000010098c8f8 cxxbridge1$string$len + 383648
4 chromedriver 0x00000001009cdb94 cxxbridge1$string$len + 650556
5 chromedriver 0x0000000100980ba0 cxxbridge1$string$len + 335176
6 chromedriver 0x0000000100daf664 cxxbridge1$str$ptr + 2498188
7 chromedriver 0x0000000100db2978 cxxbridge1$str$ptr + 2511264
8 chromedriver 0x0000000100d94d04 cxxbridge1$str$ptr + 2389292
9 chromedriver 0x0000000100db3220 cxxbridge1$str$ptr + 2513480
10 chromedriver 0x0000000100d85cec cxxbridge1$str$ptr + 2327828
11 chromedriver 0x0000000100dcf8d4 cxxbridge1$str$ptr + 2629884
12 chromedriver 0x0000000100dcfa5c cxxbridge1$str$ptr + 2630276
13 chromedriver 0x0000000100ddee80 cxxbridge1$str$ptr + 2692776
14 libsystem_pthread.dylib 0x00000001957842e4 _pthread_start + 136
15 libsystem_pthread.dylib 0x000000019577f0fc thread_start + 8