scrapy startproject tutorial: Error when running this command

百般思念 提交于 2019-12-23 05:44:06

问题


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

回答1:


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


来源:https://stackoverflow.com/questions/25979938/scrapy-startproject-tutorial-error-when-running-this-command

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!