1、如果是通過request請求的話,則在verify參數設置為False
res=requests.get(url,verify=False)
2、如果是通過selenium的話,則添加參數 --ignore-certificate-errors
options.add_argument('--ignore-certificate-errors')
webdriver=webdriver.Chrome(options=options)
1、如果是通過request請求的話,則在verify參數設置為False
res=requests.get(url,verify=False)
2、如果是通過selenium的話,則添加參數 --ignore-certificate-errors
options.add_argument('--ignore-certificate-errors')
webdriver=webdriver.Chrome(options=options)
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。