Scrapy spider not found error

后端 未结 21 1999
感情败类
感情败类 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:09

    Make sure you have set the "name" property of the spider. Example:

    class campSpider(BaseSpider):
       name = 'campSpider'
    

    Without the name property, the scrapy manager will not be able to find your spider.

提交回复
热议问题