在mac系统中装scrapy比windows中要复杂,我自己安装了几次都失败了orz
首先安装好anaconda,确保python是3.x的版本
然后参照https://blog.csdn.net/qq_42512064/article/details/80982470 这位大佬的博文,在mac中安装好scrapy
可以在命令行中输入scrapy,检查是否成功;安装好之后应该有下面这样的输出
Scrapy 1.6.0 - no active project
Usage:
scrapy <command> [options] [args]
Available commands:
bench Run quick benchmark test
fetch Fetch a URL using the Scrapy downloader
genspider Generate new spider using pre-defined templates
runspider Run a self-contained spider (without creating a project)
settings Get settings values
shell Interactive scraping console
startproject Create new project
version Print Scrapy version
view Open URL in browser, as seen by Scrapy
[ more ] More commands available when run from project directory