直接退出来,不知道怎么回事?运行的是demo.py #37
Unanswered
dumojun101
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
DevTools listening on ws://127.0.0.1:65223/devtools/browser/38669c9b-4e1e-4bef-9e89-201869632723
Webdriver launched.
Waiting for QRCode Scan...0/15turns
Waiting for QRCode Scan...1/15turns
Waiting for QRCode Scan...2/15turns
Login Succeed.
Scanning the book:"机器学习算法的数学解析与Python实现"
Traceback (most recent call last):
File "demo.py", line 30, in
weread.scan2html('https://weread.qq.com/web/reader/2c632ef071a486a92c60226kc81322c012c81e728d9d180')
File "C:\vnstudio\lib\site-packages\WeReadScan\WeRead.py", line 189, in scan2html
html = self.get_html(book_url)
File "C:\vnstudio\lib\site-packages\WeReadScan\WeRead.py", line 163, in get_html
readerFooterClass = readerFooter.get_attribute('class')
File "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\selenium\webdriver\remote\webelement.py", line 156, in get_attribute
self, name)
File "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\selenium\webdriver\remote\webdriver.py", line 874, in execute_script
'args': converted_args})['value']
File "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\selenium\webdriver\remote\webdriver.py", line 418, in execute
self.error_handler.check_response(response)
File "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\selenium\webdriver\remote\errorhandler.py", line 243, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document
(Session info: headless chrome=107.0.5304.107)
Stacktrace:
Backtrace:
Ordinal0 [0x007BACD3+2075859]
Ordinal0 [0x0074EE61+1633889]
Ordinal0 [0x0064B7BD+571325]
Ordinal0 [0x0064E374+582516]
Ordinal0 [0x0064E225+582181]
Ordinal0 [0x0064EBA5+584613]
Ordinal0 [0x006ABF4F+966479]
Ordinal0 [0x0069731C+881436]
Ordinal0 [0x006AB56A+963946]
Ordinal0 [0x00697136+880950]
Ordinal0 [0x0066FEFD+720637]
Ordinal0 [0x00670F3F+724799]
GetHandleVerifier [0x00A6EED2+2769538]
GetHandleVerifier [0x00A60D95+2711877]
GetHandleVerifier [0x0084A03A+521194]
GetHandleVerifier [0x00848DA0+516432]
Ordinal0 [0x0075682C+1665068]
Ordinal0 [0x0075B128+1683752]
Ordinal0 [0x0075B215+1683989]
Ordinal0 [0x00766484+1729668]
BaseThreadInitThunk [0x76D0FA29+25]
RtlGetAppContainerNamedObjectPath [0x76FE7A7E+286]
RtlGetAppContainerNamedObjectPath [0x76FE7A4E+238]
Beta Was this translation helpful? Give feedback.
All reactions