禁用安全警告

requests中如果启用了verify=False 会出现大量的证书错误警告

from requests.packages.urllib3.exceptions import InsecureRequestWarning
# 禁用安全请求警告
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)

re中指定前后文中间的字符串:

response = re.findall('(?:前文字)(.+)(?:后文字)',response.text)