禁用安全警告 Posted on 2018-03-14 requests中如果启用了verify=False 会出现大量的证书错误警告 from requests.packages.urllib3.exceptions import InsecureRequestWarning# 禁用安全请求警告requests.packages.urllib3.disable_warnings(InsecureRequestWarning) re中指定前后文中间的字符串: response = re.findall('(?:前文字)(.+)(?:后文字)',response.text)