Skip to content
masterclass Buddy

Scrapy · Command

scrapy genspider

scrapy genspider creates a new spider from a template. It needs a spider name and a domain or URL, and it can run without a Scrapy project.

Last updated

Syntax

scrapy genspider [-t template] <name> <domain or URL>

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • scrapy startproject
  • scrapy crawl
  • scrapy -h

Source: Command line tool — Scrapy 2.19.0 documentation. Checked 2026-11-03.