一、卡着不动
在我测试了几个文件之后,发现超过500页的都卡着了,一般会在300-500页卡着,然后loading条显示 51%|█████ | 470/746 [09:26<09:05, 1.51s/it]
就再也不update了
二、error
51%|█████ | 380/746 [09:26<09:05, 1.49s/it]
Traceback (most recent call last):
File "G:\Programwork\Python\doc_downloader\full_code\doc_downloader-master\docDownloader.py", line 44, in
fire.Fire(main)
File "C:\Users\billeyang\AppData\Local\Programs\Python\Python39\lib\site-packages\fire\core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "C:\Users\billeyang\AppData\Local\Programs\Python\Python39\lib\site-packages\fire\core.py", line 463, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "C:\Users\billeyang\AppData\Local\Programs\Python\Python39\lib\site-packages\fire\core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "G:\Programwork\Python\doc_downloader\full_code\doc_downloader-master\docDownloader.py", line 16, in main
doc88.download(url)
File "G:\Programwork\Python\doc_downloader\full_code\doc_downloader-master\doc88.py", line 78, in download
img_data = driver.execute_script(js_cmd)
File "C:\Users\billeyang\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 634, in execute_script
return self.execute(command, {
File "C:\Users\billeyang\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\billeyang\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchWindowException: Message: no such window: target window already closed
from unknown error: web view not found
(Session info: headless chrome=99.0.4844.51)
Process finished with exit code 1
error显示target window already closed但并未对chrome界面有任何操作。