爬虫
白日梦@
这个作者很懒,什么都没留下…
展开
-
python requests 禁止重定向
python requests 禁止重定向allow_redirects=Falseimport requestssession = requests.session()response1 = session.post(login_url,headers=header,data=login_data,verify=False,allow_redirects=False)...原创 2019-11-07 16:36:13 · 1389 阅读 · 0 评论 -
requests模块InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificat....
原来代码import requests# requests.packages.urllib3.disable_warnings()session = requests.session()header = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Geck...原创 2019-11-07 10:48:02 · 404 阅读 · 0 评论 -
Python报Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])
import requestssession = requests.session()header = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36'}response = s...原创 2019-11-07 10:41:32 · 3988 阅读 · 0 评论