Mac在python3环境下Scrapy的安装和配置

2020-12-17  本文已影响0人  冰雨9527

mac同时有python的2和3版本,在终端输入:

 pip3 install Scrapy

注意Scrapy中S大写。
安装完毕。

如何验证scrapy安装成功?
gndeMacBook-Pro:~ gn$ scrapy

Scrapy 2.4.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

Python Scrapy 爬虫框架实例

上一篇下一篇

猜你喜欢

热点阅读