Understanding Scrapy's Project Structure: A Complete Beginner's Guide
dev.to·6d·
Discuss: DEV
🐍python
Preview
Report Post

When I first ran scrapy startproject, I stared at all those folders and files thinking, "What is all this stuff?"

If you’re feeling the same way right now, don’t worry. You’re exactly where I was when I started.

Let me walk you through everything. We’ll create a project together, look at each file, and I’ll explain what matters and what you can ignore (at least for now). By the end of this, Scrapy’s structure will make complete sense.

Sound good? Let’s dive in.


Creating Your First Scrapy Project

First, let’s create a project so we have something real to look at.

Open your terminal and type:

scrapy startproject bookstore

You can replace "bookstore" with whatever name you want. I’m using bookstore because we’re going to scrape book data.

Scrapy cre…

Similar Posts

Loading similar posts...