Creating spider problem

It shows spider not found error tho I have used the correct spider name.

Hi @yashikakhurana00,
It is difficult to comment without looking at the code or the directory structure (which is important in this case). My first advice is to ensure that you have set the “name” property of the spider. Example:

class QuotesSpider(BaseSpider):
    name = 'quotes_spider'

If this is not the case, try running “scrapy list” on the command line. This will list all available spiders. Check if the required spider is in this list or not.

Hope this helps!

See the 5th line. A scrapy project isn’t configured. Before running any spider, a scrapy project is need to be set up. In that project, all your spiders are stored in the “spiders” folder. This link will guide you through creating a project. Configuring a Scrapy Project

Let me know if this resolves your issue.

Actually I created a project but didnt open the directory in cmd. I tried the scrapy list command, it doesn’t display anything.

Open cmd in the scrapy project and try running “scrapy list” command. If your spider still isn’t listed, then we’ll look at other possible error sources.

Tried. The command runs but it doesn’t display anything

Request you to share the scrapy project. Just archive (zip) it, upload to drive, and share the drive link. It would be a lot easier for me to help you then.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.