1. 程式人生 > >【爬蟲】爬https網站的報錯問題

【爬蟲】爬https網站的報錯問題

問題來由

實驗樓專案: https://www.shiyanlou.com/courses/623

解決方法

程式碼中插入
from requests.packages.urllib3.exceptions import InsecureRequestWarning,InsecurePlatformWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
requests.packages.urllib3.disable_warnings(InsecurePlatformWarning)