scrapy startproject tutorial: Error when running t

2019-06-11 11:55发布

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

标签: python scrapy
1条回答
做个烂人
2楼-- · 2019-06-11 12:27

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
查看更多
登录 后发表回答