scrapy学习:环境及安装
记录一下自己在 MacOs 下安装 scrapy 的过程
利用 pip
安装
# 查看 pip 情况
❯ pip --version
pip 21.3.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
# 安装 scrapy
❯ pip install scrapy
查看 scrapy
安装情况
❯ scrapy --version
Scrapy 2.5.1 - no active project
Usage:
scrapy <command> [options] [args]
Available commands:
bench Run quick benchmark test
commands
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
Use "scrapy <command> -h" to see more info about a command
参考