Scrapy spider not found error

后端 未结 21 2300
感情败类
感情败类 2021-02-02 06:58

This is Windows 7 with python 2.7

I have a scrapy project in a directory called caps (this is where scrapy.cfg is)

My spider is located in caps\\caps\\spiders\\c

21条回答
  •  渐次进展
    2021-02-02 07:31

    If you are following the tutorial from https://docs.scrapy.org/en/latest/intro/tutorial.html

    Then do something like:

    $ sudo apt install python-pip
    $ pip install Scrapy
    (logout, login)
    $ cd
    $ scrapy startproject tutorial
    $ vi ~/tutorial/tutorial/spiders/quotes_spider.py
    $ cd ~/tutorial/tutorial
    $ scrapy crawl quotes
    

    The error happens if you try to create the spiders directory yourself under ~/tutorial

提交回复
热议问题