美文网首页
Mac在python3环境下Scrapy的安装和配置

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

作者: 冰雨9527 | 来源:发表于2020-12-17 17:23 被阅读0次

    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 爬虫框架实例

    相关文章

      网友评论

          本文标题:Mac在python3环境下Scrapy的安装和配置

          本文链接:https://www.haomeiwen.com/subject/wwizgktx.html