python selenium解决ERROR:ssl_client_socket_impl.cc 962] handshake failed; returned -1, SSL
Preface
I encountered a lot of problems in the process of learning selenium, summarize them and share with you
Problem Description
After several errors like the following appear, the program automatically terminates
[9232:2000:0222/102513.017:ERROR:ssl_client_socket_impl.cc(962)] handshake failed; returned -1, SSL error code 1, net_error -100
Solution:
This error occurs because of an unsafe address error, which causes the program to terminate due to a loop error. Take a parameter of –ignore-certificate-errors to ignore those certificate errors, as follows:
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--ignore-certificate-errors')
driver = webdriver.Chrome(options=chrome_options)
The problem is solved, remember to like, follow and leave your questions or thoughts in the comment area!
At last
For other selenium related content, please see: https://blog.csdn.net/weixin_45386875/article/details/113933541