1. 安装phantomjs

下载地址:http://phantomjs.org/download.html

解压后将phantomjs.exe文件放到python根目录

 

2.安装pyspider

pip install pyspider

运行:pyspider 或 pyspider all

提示报错:RuntimeError: No supported color terminal library

我的tornado是4.5版本,降级到4.4.3后解决

python -m pip install tornado==4.4.3

 

运行:pyspider 或 pyspider all

提示报错:

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

解决上面报错方法一:

  降级wsgidav到2.4.1版本

  python -m pip install wsgidav==2.4.1

解决上面报错方法二:

  打开文件pyspider/webui/webdav.py

  注释209行  # 'domaincontroller': NeedAuthController(app), 

  改为: 'http_authenticator': {'HTTPAuthenticator': NeedAuthController(app)}, 

 

运行:pyspider 或 pyspider all

在浏览器输入localhost:5000

 

相关文章:

  • 2021-10-26
  • 2021-08-02
  • 2022-12-23
  • 2021-06-01
  • 2021-05-16
  • 2022-01-03
  • 2021-10-05
  • 2021-05-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2021-08-11
  • 2021-07-27
相关资源
相似解决方案