
Scrapy is a powerful, extensible web scraping framework that enables developers to extract structured data from websites at scale.
Key Features:
Whether you're building data pipelines, monitoring prices, or gathering research data, Scrapy provides the configurable foundation for Python web scraping.
Distributed crawling requires an extension or a deployment architecture beyond the core framework.
Scrapy is for Python teams building durable, high-volume crawlers with full control over spiders, middleware, and pipelines. Pair it with browser tooling if you need heavy JavaScript rendering or managed anti-blocking.
Growing a website? Track its keywords, Google rankings, Search Console insights, and share of voice with bisibility. Free during beta.
Our productSource code
scrapy/scrapy
Stars
65.7KForks
12.2KLast commit
2026-11-27License
BSD-3-ClauseLanguage
PythonMetrics recorded 2026-12-01
License source: Repository license file
Scrapy is a Python framework for crawling websites and extracting structured data. Spiders define requests and extraction logic; the framework schedules requests and can export results or pass them through item pipelines.
Sources (checked ): Scrapy overview
Yes. Scrapy is open source under its BSD license, with no framework subscription fee. Hosting, proxies or other services used by a scraping project may have separate costs.
Sources (checked ): Scrapy license
Similar headers do not establish equivalent requests. Scrapy treats request bodies, form data, JSON, and session cookies separately. Cookies set through a raw Cookie header are not considered by CookiesMiddleware; use Request.cookies for middleware-managed cookies. Compare the method, URL, serialized body, content type, and cookies against the working request in an authorized test. Inspect the status and response body, including the errback for non-2xx responses. Establish the request difference before changing middleware or adding browser automation.
Sources (checked ): Requests and Responses — Scrapy 2.19.0 documentation
Scrapy provides programmable spiders and item pipelines. Its documentation shows pipelines for record validation, duplicate filtering, and storage, while spiders define extraction and which links to follow. Choose it when your crawl rules, transformations, or application integration need explicit code and review. Plan the rules you will implement and maintain, including record keys and failure handling. Compare that work with a visual tool on the same task: changing selectors, validating output, recovering failures, and operating repeat runs.
Sources (checked ): Item Pipeline — Scrapy 2.19.0 documentation; Scrapy Tutorial — Scrapy 2.19.0 documentation
Start with Scrapy’s official tutorial and reproduce its small crawler before adapting it. The tutorial covers spiders, selectors, following links, and saving extracted data. The item-pipeline guide explains where record validation and processing fit. For your first adaptation, use one permitted source, a few clearly defined fields, and a known expected result. Inspect saved responses when selectors fail. Get the first page correct before adding pagination, then validate the exported records and introduce pipeline rules where needed.
Sources (checked ): Item Pipeline — Scrapy 2.19.0 documentation; Scrapy Tutorial — Scrapy 2.19.0 documentation
Scrapy’s dynamic-content guide recommends locating the data source before adding browser automation. Records may already be present in the response, embedded in scripts, or supplied by a separate request. Use a documented or operator-approved interface when it provides the required fields. Match its method, parameters, pagination, and session requirements. Add a browser step when the permitted workflow needs page execution or interaction. Validate the returned records in either path, and establish the supported contract before relying on an internal endpoint.
Sources (checked ): Selecting dynamically-loaded content — Scrapy 2.19.0 documentation
Agree on the collection scope and request rate with the site operator, then set DOWNLOAD_DELAY and CONCURRENT_REQUESTS_PER_DOMAIN explicitly. When enabled, AutoThrottle adjusts delays from latency while respecting those controls; its target concurrency is an average, not a strict cap. Scrapy also exposes ROBOTSTXT_OBEY and user-agent settings. Inspect the project’s actual settings rather than relying on defaults. Test a small sample, identify the crawler appropriately, and reduce or stop work when errors increase. Treat robots instructions and the operator’s agreed access scope as separate checks.
Sources (checked ): Settings — Scrapy 2.19.0 documentation; AutoThrottle extension — Scrapy 2.19.0 documentation
Verified against the scrapy/scrapy repository and the PyPI package.
Compiled from public repository and package data; check project docs for current details.