python爬虫之requests对https的限制访问
2017-06-28 00:03
309 查看
如果想要爬取的一个网站时返回错误如下:
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:79:InsecurePlatformWarning:
A true SSLContext object is not available.This prevents urllib3 from configuring SSL appropriately and may cause certain SSL
connections to fail.For more information, see https://urllib3.readthedocs.org/en/latest/security.html# insecureplatformwarning.InsecurePlatformWarning
此时,执行此指令:
pip install pyopenssl ndg-httpsclient pyasn1
这种错误应该时因为python版本过低(比如python2.7),https的加密又无法被requests请求成功
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:79:InsecurePlatformWarning:
A true SSLContext object is not available.This prevents urllib3 from configuring SSL appropriately and may cause certain SSL
connections to fail.For more information, see https://urllib3.readthedocs.org/en/latest/security.html# insecureplatformwarning.InsecurePlatformWarning
此时,执行此指令:
pip install pyopenssl ndg-httpsclient pyasn1
这种错误应该时因为python版本过低(比如python2.7),https的加密又无法被requests请求成功
相关文章推荐
- Python3 requests爬虫访问HTTPS站点报错SSLError
- 解决python2.7.9以下版本requests访问https的问题
- python requests https 访问出错
- 【Python爬虫实战--1】深入理解urllib;urllib2;requests
- Python访问限制
- Python学习 Day 7 面向对象 类和实例 访问限制
- Python访问限制
- python爬虫伪装成浏览器访问
- Python 4.2 访问限制
- python爬虫 - python requests网络请求简洁之道
- python 访问限制
- Python Requests爬虫——获取一个收藏夹下所有答案的图片
- 突破python爬虫限制种种
- python HTTPSconnection SSL 访问https
- 在Apache+mod_wsgi+python的基础上搭建https安全访问
- Python--访问限制
- Python 网络爬虫伪装成浏览器访问
- Mac下firfox访问https限制问题
- python访问限制
- 简单爬虫,突破IP访问限制和复杂验证码,小总结