requests 证书验证

今天在采集网页的时候 发现请求连接之后,没有返回结果

代码如下:

  url = 'https://skinnerinc-res.cloudinary.com/images//v1501706307/1165786/pair-of-karl-springer-style-table-'

  response = requests.get(url=source_url, headers=headers)

这个时候我们    print response.response.status_code  不会有任何结果

 

解决办法:

  response = requests.get(url=source_url, headers=headers,verify=False)

posted @ 2017-09-28 16:56  淋哥  阅读(364)  评论(0)    收藏  举报