一、了解、安装scrapy
pip3 install scrapy
二、创建项目
scrapy startproject 工程名 ----------产生爬虫工程目录
三、创建爬虫
scrapy genspider 爬虫名 “域名” ********爬虫名不能和工程名相同
这时报错信息:
from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。
四、解决办法
pip3 uninstall pyopenssl
pip3 uninstall cryptography
pip3 install pyopenssl
pip3 install cryptography