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, stderr will 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 python cProfile stats to FILE.
  • --lsprof=FILE β€” write lsprof profiling 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. πŸ’…βœ¨