1. 程式人生 > >python爬蟲訪問https網站報錯解決方案ERROR:ssl_client_socket_impl.cc(1098)] handshake failed

python爬蟲訪問https網站報錯解決方案ERROR:ssl_client_socket_impl.cc(1098)] handshake failed

報錯資訊:

[3488:1356:0512/211222.342:ERROR:ssl_client_socket_impl.cc(1098)] handshake failed; returned -1, SSL error code 1, net_error -101

Chrome瀏覽器解決方案:

from selenium import webdriver
if __name__ == '__main__':
    options=webdriver.ChromeOptions()

    options.add_argument('--ignore-certificate-errors'
) driver=webdriver.Chrome(chrome_options=options) driver.get(u'https://python.org/') driver.close()