scrapy startproject 教程:运行此命令时出错 [英] scrapy startproject tutorial: Error when running this command

查看:43
本文介绍了scrapy startproject 教程:运行此命令时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试创建一个新的 Scrapy 项目时遇到了这个错误.

I got this error when I was trying to create a new Scrapy project.

C:\Windows\system32>Scrapy startproject tutorial
c:\Python27\lib\site-packages\twisted\internet\_sslverify.py:184: UserWarning: Y
ou do not have the service_identity module installed. Please install it from <ht
tps://pypi.python.org/pypi/service_identity>. Without the service_identity modul
e and a recent enough pyOpenSSL tosupport it, Twisted can perform only rudimenta
ry TLS client hostnameverification.  Many valid certificate/hostname mappings ma
y be rejected.
verifyHostname, VerificationError = _selectVerifyImplementation()
New Scrapy project 'tutorial' created in:
C:\Windows\system32\tutorial

You can start your first spider with:
cd tutorial
scrapy genspider example example.com

推荐答案

这只是一个警告,twisted 将无法识别 SSL 站点.要摆脱警告,请安装 service_identity 模块:

This is only a warning that twisted won't be able to identify SSL sites. To get rid of the warning install the service_identity module:

pip install service_identity

这篇关于scrapy startproject 教程:运行此命令时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆