scrapy startproject tutorial:运行此命令时出错

时间:2014-09-22 17:36:31

标签: python scrapy

当我尝试创建一个新的Scrapy项目时,我遇到了这个错误。

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

1 个答案:

答案 0 :(得分:0)

这只是一个警告,扭曲将无法识别SSL站点。要删除警告,请安装service_identity模块:

pip install service_identity