昨天出现 got an unexpected keyword argument 'executable_path’问题后,
driver = webdriver.Chrome(executable_path=CHROME_DRIVER_PATH,chrome_options=options)#
改成
driver = webdriver.Chrome(options=options)#executable_path=CHROME_DRIVER_PATH,options=options
后跑代码没有问题,可今天又出现新的问题,
Traceback (most recent call last):
File "D:\aaa\py3\DayUpdateDatafun.py", line 131, in <module>
DayUpdateDatafun()
File "D:\aaa\py3\DayUpdateDatafun.py", line 80, in DayUpdateDatafun
#getcstunnel(df)
File "D:\aaa\py3\findx.py", line 33080, in up_ths_gn_kl_all
up_ths_gn_kl(code,name)
File "D:\aaa\py3\findx.py", line 33063, in up_ths_gn_kl
df=get_ths_kl_rt_cs(code,name,1)
File "D:\aaa\py3\findx.py", line 33041, in get_ths_kl_rt_cs
return get_ths_gn_kl(platecode)
File "D:\aaa\py3\findx.py", line 32951, in get_ths_gn_kl
html = get_page_detail(url)
File "D:\aaa\py3\findx.py", line 32937, in get_page_detail
'Cookie': 'v={}'.format(get_cookie())
File "D:\aaa\py3\findx.py", line 32920, in get_cookie
driver.get(url)
File "d:\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", l
ine 354, in get
self.execute(Command.GET, {"url": url})
File "d:\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", l
ine 345, in execute
self.error_handler.check_response(response)
File "d:\Python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py"
, line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: net::ERR_INTERNET_DISCONNECTED
(Session info: headless chrome=109.0.5414.120)
Stacktrace:
Backtrace:
(No symbol) [0x01596643]
(No symbol) [0x0152BE21]
(No symbol) [0x0142DA9D]
(No symbol) [0x01429E22]
(No symbol) [0x0141FCFD]
(No symbol) [0x01421101]
(No symbol) [0x0141FFDD]
(No symbol) [0x0141F3BC]
(No symbol) [0x0141F2D8]
(No symbol) [0x0141DC68]
(No symbol) [0x0141E512]
(No symbol) [0x0142F75B]
(No symbol) [0x01497727]
(No symbol) [0x0147FD7C]
(No symbol) [0x01496B09]
(No symbol) [0x0147FB76]
(No symbol) [0x014549C1]
(No symbol) [0x01455E5D]
GetHandleVerifier [0x0180A142+2497106]
GetHandleVerifier [0x018385D3+2686691]
GetHandleVerifier [0x0183BB9C+2700460]
GetHandleVerifier [0x01643B10+635936]
(No symbol) [0x01534A1F]
(No symbol) [0x0153A418]
(No symbol) [0x0153A505]
(No symbol) [0x0154508B]
BaseThreadInitThunk [0x7546343D+18]
RtlInitializeExceptionChain [0x775B9802+99]
RtlInitializeExceptionChain [0x775B97D5+54]
跟前几次错误好像又不一样了,一失足成千古恨,真不该乱删c盘文件,请高人救命!