import requests
# import warnings
# warnings.filterwarnings("ignore") #方法一
#requests.packages.urllib3.disable_warnings() #方法二
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) #方法三
a=requests.get("https://www.sogou.com/",verify=False)
print(a.text)
05-11 21:57