pyspider.报错

PS:对应教程地址:[A]、Python爬虫进阶四之PySpider的用法 _ 静觅.html(https://cuiqingcai.com/2652.html)[B]、Python爬虫进阶二之PySpider框架安装配置 _ 静觅.html(https://cuiqingcai.com/2443.html

 

1、HTTPError: HTTP 599: SSL certificate problem: unable to get local issuer certificate

 HTTP 599_ SSL certificate problem_ unable to get local issuer certificate错误_http___www.54tianzhisheng.cn_-CSDN博客.html(https://blog.csdn.net/tzs_1041218129/article/details/52853465

 PySpider HTTP 599 arguement validate_cert _ 静觅.html(https://cuiqingcai.com/2703.html

 1.1、

  ZC:网上主要的说法就是 给函数self.crawl(...) 多传1个参数:例如,

   原来的调用是这样的:“self.crawl(url, callback=self.index_page)”,

   现在变成这样:          “self.crawl(url, callback=self.index_page, validate_cert=False)”

   但是今天,不知怎么的就是不行,然后看网上说把github上的相关代码下下来覆盖什么的也没用,然后直接将PySpider卸载了,再“pip install -i https://mirrors.aliyun.com/pypi/simple/ pyspider”,就又好了...

 

2、https://v.taobao.com/v/content/live?catetype=704&from=taonvlang&page=1

  这是 教程中的爬的地址 原来的地址无效了,这是现在(20200404)转到的地址

 

3、ValueError: Invalid configuration:
  - Deprecated option 'domaincontroller': use 'http_authenticator.domain_controller' instead.

 参考网址:

  安装pyspider遇到的坑(python3.6)_Python_盛夏88688的博客-CSDN博客.html(https://blog.csdn.net/u011451186/article/details/88222328

  python - pyspider 启动错误 - SegmentFault 思否.html(https://segmentfault.com/q/1010000015429020?utm_source=tag-newest

 

  wsgidav 发布了3.X版本,默认安装了。我们改成2.X的就好了。希望对大家有帮助。

wsgidav发布的3.x版本目前仍然是测试版,相对于2.x(例如2.4.1)更改了一些用法,上面报错的两个部分就是的。
pyspider的3.0及以上版本在安装时,会默认安装wsgidav的3.x版(具体的版本可能会有偏差)。
其实上面错误信息已经提示该如何改了,不过那样改比较麻烦。可以换个方法,换回wsgidav的2.x版本就不会报错了。先把3.x版卸载,再装2.x版(pip安装wsgidav会默认安装2.x版 我的是2.4.1版)。
下面是具体的卸载安装的命令
windows下进入cmd,(linux下打开终端),输入: pip uninstall wsgidav pip install wsgidav
如果报错失败,按照下面的再试一次,(一般linux不会出错,windows下可能输入下面的命令) python -m pip uninstall wsgidav python -m pip install wsgidav
如果安装的wsgidav版本还是3.x版本,可以在卸载这个版本之后, 在安装命令后面加上具体版本
例如 python -m pip install wsgidav==2.4.1

 

4、

5、

posted @ 2020-01-08 22:37  pythonz  阅读(239)  评论(0编辑  收藏  举报