SCRAPY(1)
β¨ NAME β¨
scrapy β the Scrapy command-line tool π (and yes bestie, this is the General Commands Manual entry for it, so you're in exactly the right place)
πΈ SYNOPSIS πΈ
scrapy [command] [OPTIONS] ...
π¦ DESCRIPTION π¦
Okay so the way you actually talk to Scrapy is through the scrapy command-line tool. That's the whole vibe. The script hands you a bunch of different commands, each one built for a different purpose.
And here's the thing you gotta internalise: every single command has its own syntax. Like, its own personality, its own rules. In other words β each command supports a different set of arguments and options. No universal cheat code, sorry bestie π
π OPTIONS π
π fetch [OPTION] URL
Go grab a URL using the Scrapy downloader. Fetch is fetch, she just gets it. π
--headersβ print the response HTTP headers instead of the body. Just the receipts, not the whole meal.
π runspider [OPTION] spiderfile
Run a spider. That's it, that's the job. π·οΈβ¨
--output=FILEβ store scraped items to FILE in XML format.
π settings [OPTION]
Query Scrapy settings. Like a little interrogation but for your config. π
--get=SETTINGβ print the raw setting value.--getbool=SETTINGβ print the setting value, interpreted as a boolean.--getint=SETTINGβ print the setting value, interpreted as an integer.--getfloat=SETTINGβ print the setting value, interpreted as a float.--getlist=SETTINGβ print the setting value, interpreted as a float. (no cap, that's literally what the page says β I'm just the messenger π«Ά)--initβ print the initial setting value (before loading extensions and spiders).
π§ shell URL | file
Launch the interactive scraping console. Main character energy, but for debugging. π
β startproject projectname
Create a new project with an initial project template. Fresh start, fresh project, slay. π
πΈ The general ones (they go with everything) πΈ
--help,-hβ print command help and options.--logfile=FILEβ log file. If it's omitted,stderrwill be used.--loglevel=LEVEL,-L LEVELβ log level (default:None).--nologβ disable logging completely. Silence. Blessed silence. π€«--spider=SPIDERβ always use this spider when the arguments are urls.--profile=FILEβ write pythoncProfilestats to FILE.--lsprof=FILEβ writelsprofprofiling stats to FILE.--pidfile=FILEβ write process ID to FILE.--set=NAME=VALUE,-s NAME=VALUEβ set/override a setting (may be repeated π so go off).
π AUTHOR π
Scrapy was written by the Scrapy Developers. Iconic behaviour, honestly. π
This manual page was written by Ignace Mouzannar mouzannar@gmail.com, for the Debian project (but may be used by others). We love a generous king π«Ά
And that's the whole page, bestie β sourced from the General Commands Manual, dated October 17, 2009. Go forth and scrape responsibly. Periodt. π
β¨
π¦ where this page comes from
- debian bookworm: python3-scrapy 2.8.0-2 Β· BSD-3-Clause
- debian trixie: python3-scrapy 2.12.0-2 Β· BSD-3-Clause
- nixpkgs unstable: python3.13-scrapy 2.17.0
- nixpkgs unstable: python3.14-scrapy 2.17.0
- ubuntu jammy: python3-scrapy 2.5.1-2 Β· BSD-3-Clause
- ubuntu noble: python3-scrapy 2.11.1-1 Β· BSD-3-Clause
- ubuntu questing: python3-scrapy 2.12.0-2
- ubuntu resolute: python3-scrapy 2.14.1-1 Β· BSD-3-Clause
- ubuntu stonking: python3-scrapy 2.18.0-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms