以下方法均亲测有效:
BUG0:Scrapy Fatal error in launcher: Unable to create process using
scrapy crawl [spider_name]
// 改为
python -m scrapy crawl [spider_name]
BUG1:ImportError:DLL load failed win32api
解决方法一:
pip install pypiwin32
解决方法二:
将虚拟环境下的Lib\site-packages\pywin32_system32中的所有文件(其实就俩)拷贝到C:\Windows\System32下即可;
附(windows平台下Scrapy环境搭建):
Scrapy环境安装:
pip install scrapy
Scrapy工程创建:
scrapy startproject [project_name]
// 或
python -m scrapy startproject [project_name]
ps:哪个有效用哪个
Scrapy创建爬虫模板文件
scrapy genspider [spider_name] [spider_target_domain_url]
// 或
python -m scrapy genspider [spider_name] [spider_target_domain_url]