创建一个目录test1
进入terminal
(base) C:\Users\16486\PycharmProjects\pythonProject1234\test1>scrapy startproject firstBlood
New Scrapy project 'firstBlood', using template directory 'C:\Users\16486\Anaconda3\lib\site-packages\scrapy\templates\project', created in:
C:\Users\16486\PycharmProjects\pythonProject1234\test1\firstBlood
You can start your first spider with:
cd firstBlood
scrapy genspider example example.com
File "C:\Users\16486\Anaconda3\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 14, in <module>
from cryptography.hazmat.bindings._openssl import ffi, lib
pip install -I cryptography
(base) C:\Users\16486\PycharmProjects\pythonProject1234\test1>cd firstBlood
(base) C:\Users\16486\PycharmProjects\pythonProject1234\test1\firstBlood>scrapy genspider first www.xxx.com
Created spider 'first' using template 'basic' in module:
firstBlood.spiders.first