Crawler framework · Official information compilation
Scrapy
Scrapy (pronounced /ˈskreɪpaɪ/ in docs) is a web crawling and web scraping framework written in Python. The home page of the document describes it as a fast high-level framework for crawling websites and extracting structured data from pages. Its uses include data mining, monitoring and automated testing. “Scrapy at a glance” adds that it was originally designed for web scraping and can also extract data via API, or as a general web crawler. On 2026-11-18, the stable version shown on the official website, documentation and PyPI is 2.20.0; the release time of GitHub releases/latest is 2026-11-06T18:23:09Z. The license is BSD-3-Clause. This reading did not see an official subscription price for the framework itself.
Visit Scrapy official website Official website: scrapy.org. This button will open the above address after jumping through this site.
Who is suitable and who is not suitable?
Good fit
- Developers who need to write structured collection in Python and control request scheduling, concurrency, pipelines and exports themselves
- To organize scraping using extended CSS selectors, XPath, and extensible middleware
- Documentation lists data mining, monitoring, automated testing, and requesting APIs using the same framework
- You can run scrapy startproject tutorial to build the project first, or you can directly run scrapy runspider quotes_spider.py -o quotes.jsonl without building the project. The official sample site is https://quotes.toscrape.com
Consider the limits
- I just want to use the parsing library to process the HTML I have already obtained. The FAQ calls BeautifulSoup and lxml parsing libraries, calls Scrapy an application framework for writing crawlers, and compares jinja2 and Django. There are also BeautifulSoup and lxml in the directory of this site
- The main goal is to get the page that must be rendered in the browser, but it does not plan to integrate scrapy-playwright, nor does it plan to find a data interface first. Dynamic content documents put headless browsing behind data source not found
- Official hosting is required, and cloud service quotations must be viewed on this page. Deployment documentation lists Scrapyd as open source, as well as Zyte's Zyte Scrapy Cloud. This page does not verify the prices of these two items; Zyte is in another listing on this site
- Think of this page as a step-by-step guide to bypassing your site's access rules. The settings document recommends changing the User-Agent to something that can identify you and leave a URL or email address that the website owner can contact.
Capabilities
The following is grouped by architecture, installation, setup and release notes on the official website and documentation. If the same sentence applies only to a certain operating mode, it will be written in the corresponding group.
Core architecture and data flow
- The official website writes the core into six pluggable parts, surrounding an asynchronous engine: Scheduler is responsible for queuing and prioritization, Downloader is responsible for concurrent fetching, Spider is user-written parsing and follow-up, Items are structured records, Pipelines are responsible for verification, cleaning and storage, and Feed exports are responsible for exporting JSON, CSV, S3, etc. The engine drives these six parts asynchronously.
- The data flow of the schema document is controlled by the execution engine. 1. Engine obtains initial Requests from Spider. 2. Engine hands Requests to Scheduler and requests the next batch. 3. Scheduler returns the next batch of Requests to Engine.
- 4. Engine sends Requests to Downloader via process_request of Downloader Middlewares. 5. After the Downloader is completed, a Response is generated and returned to the Engine via process_response of Downloader Middlewares.
- 6. Engine hands the Response to Spider via process_spider_input of Spider Middleware. 7. Spider returns scraped items and new Requests after processing, passing through process_spider_output of Spider Middleware.
- 8. Engine sends items to Item Pipelines, sends Requests to Scheduler, and then requests the next batch. 9. Repeat from step 3 until the Scheduler has no more requests.
- The documentation also lists the components Scrapy Engine, Scheduler, Downloader, Spiders, Item Pipeline, Downloader middlewares, Spider middlewares, and Extensions. Extensions do not play the same fixed role as other components in this data flow. The documentation states that Scrapy uses Twisted to implement non-blocking concurrency.
Extraction and interactive debugging
- Built-in extended CSS selectors and XPath for extracting from HTML/XML, as well as regular regex assistance.
- The interactive shell can experiment with selectors, and the documentation states that it is IPython aware. The official website example is to run scrapy shell on https://quotes.toscrape.com.
- "Scrapy at a glance" lists encoding support and automatic detection to handle non-standard or broken encoding declarations. The first release focus of 2.20.0 is: using frostwork to do response encoding closer to the browser, base URL and meta refresh jump detection. The coverage of this test is not measured separately on this page.
- You can use scrapy runspider quotes_spider.py -o quotes.jsonl to run a single file without building a project. The project building command in the tutorial is scrapy startproject tutorial, and the practice site is https://quotes.toscrape.com.
- Another important aspect of 2.20.0 is that a request can be awaited to get its response. This page does not run this writing method.
Exports and pipelines
- Item Pipeline processes the data after the spider retrieves it. Typical tasks for document collection are cleaning, verification, and persistence, such as writing to a database.
- The serialization format documentation for Feed exports lists JSON, JSON lines, CSV, and XML. Storage backends list local file system, FTP, FTPS, S3, Google Cloud Storage, and stdout. S3 requires s3 extra and Google Cloud Storage requires gcs extra.
- "Scrapy at a glance" also lists: reusable spiders for scraping Sitemaps and XML/CSV feeds; media pipelines for downloading images or other media associated with entries; and DNS resolution caching.
- -o quotes.jsonl in the tutorial uses feed exports. "Scrapy at a glance" indicates that you can change the export format or storage backend, or you can use the item pipeline to save items into the database.
Extensions with officially listed plugins
- Can be extended with signals and APIs. The extension points named by the documentation are middlewares, extensions, and pipelines.
- Built-in capabilities include HTTP features such as cookies and sessions, compression, authentication, caching, custom User-Agent, robots.txt, and crawl depth limits. The original document uses the term user-agent spoofing; this page only follows the setup instructions and does not provide ways to disguise or bypass restrictions. The default of USER_AGENT is "Scrapy/VERSION (+https://scrapy.org)". The document recommends changing it to one that can identify you and leave a URL or email address that the website owner can contact.
- The FAQ states that Scrapy will automatically send and receive cookies like a browser. The default value of COOKIES_ENABLED has not been verified this time, so the Boolean value is not written.
- The official website has the official programming agent plug-in and lists Scrapy MCP Server (scrapy-mcp-official) and Scrapy Agent Skills. The description of 2.19.0 on the home page is: The RemoteControl extension can view and control running crawlers through HTTP and is used by Scrapy MCP server. These plugins are not running on this page.
- The official website lists scrapy-playwright as a browser rendering extension, which is described as rendering pages that rely on JavaScript in a real browser while retaining the existing request and response processes. The dynamic content documentation says that starting playwright-python directly in the callback will bypass most components such as middlewares and dupefilters, so scrapy-playwright is recommended. This page does not install it and does not guarantee its effectiveness.
- The official website also lists spidermon: Verify the captured data and notify you through Slack, Discord or email when there is a problem with the spider. The official website description of scrapy-poet is to separate extraction and crawling so that they can be tested and reused separately. Both sentences are function descriptions in the official website list, and this page does not guarantee the effect.
- The official website lists scrapy-zyte-api as an Anti-ban extension. The original text in the list is "Automatic proxy rotation, browser fingerprinting, and ban avoidance through Zyte API — no infrastructure to run." This page only records this description, does not expand on the method, and does not guarantee the effect. Zyte prices are off this page.
2.20 Updates and Security Fixes
- The current stable version is 2.20.0. The Published time of GitHub releases/latest is 2026-11-06T18:23:09Z, and the release notes title is Scrapy 2.20.0 (2026-11-06). The homepage of the official website marks this version as v2.20.0 Latest, November 2026. For the source code repository, see the GitHub page in the source.
- Three key points of the release notes: use frostwork to do response encoding that is closer to the browser, base URL and meta refresh jump detection; requests can be awaited to get the response; non-asyncio Twisted reactor is marked as deprecated.
- The security fixes below are reproduced in the release notes and are not audited by this site. The total size of responses in memory is limited by default, and the release notes indicate this is a fix for CVE-2017-14158. The new setting RESPONSE_MAX_ACTIVE_SIZE replaces SCRAPER_SLOT_MAX_ACTIVE_SIZE, overriding responses that are still in memory, including awaited requests and ExecutionEngine.download_async(). The shell disables this restriction. The default value is 5_000_000 bytes, 0 means off. The settings documentation calls it a soft limit.
- By default, HttpCompressionMiddleware decodes at most 1 content coding per response, and discards more and IgnoreRequest. Can be adjusted with COMPRESSION_MAX_ENCODINGS. This time, I did not find the default number for setting myself in the setting document excerpt, so I did not write another number.
- When http_auth_domain is not set, http_user and http_pass are only sent to the origin of the first request using them, that is, scheme, host and port. The release notes state that while previously sending to any URL, cross-origin redirects may send credentials to the redirect target.
- The Security Fixes section of the release notes has other entries besides this, such as proxy environment variable no_proxy, S3 defaulting to HTTPS instead, and link extraction only following http and https by default. This page will not be rewritten item by item.
- The homepage of the official website also lists two earlier editions. This is only a list published by the official website, not a complete chronology organized by this site. v2.19.0, September 2026: Added RemoteControl extension; experimental aiohttp-based download processor, becomes default when reactor is not used. v2.18.0, August 2026: HttpxDownloadHandler uses httpx2 instead; Twisted-based HTTP/2 download handler is no longer an experimental feature.
- The release notes for 2.20.0 also state that support for Python 3.10 and PyPy will be discontinued. This is consistent with the installation documentation requiring Python 3.11+.
Boundaries and Limitations
Python, platforms and installation
- Requires Python 3.11 and above. The 2.20.0 release notes indicate the deprecation of Python 3.10 and PyPy.
- The installation command is pip install scrapy. The document strongly recommends installation in an independent virtual environment to avoid conflicts with system packages, and system-level installation is not recommended.
- Alternative approach: execute uv add scrapy in the uv project; use conda install -c conda-forge scrapy for conda-forge.
- The framework itself is pure Python. The documentation names key dependencies including lxml, parsel, w3lib, twisted, cryptography, and pyOpenSSL, and writes among others. Some dependencies contain compiled code, and common platforms provide binary wheels.
- If pip cannot find a matching wheel, it will be built from the source code. In this case, the tool chain and corresponding dependent libraries need to be compiled. The options given by the documentation are: switch to a slightly older Python, as new Python wheels may be weeks behind; or use conda / Miniforge to install from conda-forge.
- Linux Do not use packages that come with the distribution, such as Debian or Ubuntu's python-scrapy. The documentation says they are often too old and not up to date with the latest versions.
startproject default value and fallback
- The settings document states: If startproject will write different values in settings.py, the document calls the value of startproject default and the value in scrapy.settings.default_settings called fallback. The following two sets of numbers are retained, and one set is not rewritten as the only default.
- The default for CONCURRENT_REQUESTS is 16. There is no fallback in this excerpt. 0 means no limit. Too high may hit the operating system's upper limit on open file descriptors per process.
- The default for CONCURRENT_REQUESTS_PER_DOMAIN is 1 (fallback 8). Can be overridden by domain name with DOWNLOAD_SLOTS.
- The default value of DOWNLOAD_DELAY is 1 second (fallback 0), which represents the minimum interval between two consecutive requests for the same domain name, and decimals can be used. It is also affected by DOWNLOAD_DELAY_JITTER. The settings documentation states that the default for this jitter is 0.5, and states that the default is random within ±50%. If the site response time is less than DOWNLOAD_DELAY, the effective concurrency for this domain is 1.
- ROBOTSTXT_OBEY is Default True (fallback False) in the settings table. The same page also writes: Although the default value is False for historical reasons, the settings.py generated by scrapy startproject will enable this item. Both sentences come from this document.
- The default for USER_AGENT is "Scrapy/VERSION (+https://scrapy.org)". The default of DEPTH_LIMIT is 0, which means no depth limit.
- RESPONSE_MAX_ACTIVE_SIZE was added in 2.20.0. The default is 5_000_000 bytes, 0 means off, and the documentation calls it a soft limit. The default for TWISTED_REACTOR_ENABLED is True. It is a pre-crawler setting, introduced in 2.15.0.
- The default values of COOKIES_ENABLED, AUTOTHROTTLE_ENABLED and COMPRESSION_MAX_ENCODINGS are not verified in this excerpt and the page is not filled in.
Memory, Compression and Credentials
- RESPONSE_MAX_ACTIVE_SIZE overrides responses that remain in memory, including awaited requests and ExecutionEngine.download_async(). The shell will turn off this restriction. The release notes list this default restriction together with CVE-2017-14158. This page has not independently reproduced the issue.
- The release notes state that code that holds responses, such as in Request.meta or component properties of scheduled requests, will also count against this limit and may slow down crawling. The reference cycle has to wait for Python's garbage collection. This is a behavioral change in the release notes, not a stress test on this site.
- By default, HttpCompressionMiddleware decodes up to 1 content coding per response, and discards any more and IgnoreRequest. Use COMPRESSION_MAX_ENCODINGS to relax. The numeric default value for this setting is not written here.
- When http_auth_domain is not set, http_user and http_pass are only sent to the origin where they are first used. This is a tightening of the old behavior in 2.20.0.
Run mode, dynamic pages and deployment
- When TWISTED_REACTOR_ENABLED is set to False, the asyncio event loop is used directly without installing the Twisted reactor. The asyncio documentation states that this mode is currently experimental and may not be suitable for production or supported by third-party code. The default HTTP(S) downloader at this time is AiohttpDownloadHandler. 2.20.0 also marks the non-asyncio Twisted reactor as deprecated.
- The data of some pages can be seen in the browser, but the selector cannot get it after downloading it with Scrapy. For dynamic content documents, it is recommended to first find the data source and then extract it. Headless browsers are the option after this, as non-default downloaders will execute the page's JavaScript.
- Starting playwright-python directly in the callback will bypass most components such as middlewares and dupefilters. The documentation recommends scrapy-playwright in order to preserve the request and response flow. This page does not check its version requirements.
- The FAQ states that HTTP proxy is supported via HttpProxyMiddleware. SOCKS proxies are OK when using HttpxDownloadHandler. IPv6 is available; when using HTTP11DownloadHandler or H2DownloadHandler, set TWISTED_DNS_RESOLVER to scrapy.resolver.CachingHostnameResolver, in which case DNS_TIMEOUT will be ignored.
- Running on this machine is suitable for early development. Deployment scenarios are required for long or sustained production runs. The deployment documentation lists Scrapyd: open source, running and monitoring with HTTP API, deployed by scrapyd-client's scrapyd-deploy, and the documentation states that it is maintained by some Scrapy developers. The other is Zyte Scrapy Cloud: the documentation says it's a hosting service provided by Zyte, the company behind Scrapy, deployed with shub, compatible with Scrapyd, and configured from scrapy.cfg. The prices and quotas for both items were not read this time.
- Common practice documents have these chapters: running from a script, running in an existing application, running in Jupyter, and running multiple spiders in the same process. There are no specific restrictions on excerpting each chapter this time.
- The FAQ has "How can I prevent my Scrapy bot from getting banned?", and the text only points to "See Avoiding getting banned." I didn't read that section this time, so I won't repeat the method.
Acquisition and licensing
Scrapy does not have a framework subscription price listed on its official website. The following table records the acquisition method, license and installation method, and the verification date is 2026-11-18. The fee column describes a license, not a monetary quote, so the page does not provide structured data for quotes. When the table is wider, the page itself does not move when it slides horizontally within the frame.
| Distribution | Fee | License | Installation path | Notes |
|---|---|---|---|---|
| PyPI distribution Scrapy 2.20.0 | Officially does not sell framework subscriptions, use it according to BSD-3-Clause | BSD-3-Clause | pip install scrapy; use uv add scrapy in uv project; conda install -c conda-forge scrapy | It is recommended to install it in an independent virtual environment, and system-level installation is not recommended. The differences between Windows, Linux and macOS are written in "Usage Environment". See LICENSE on the 2.20.0 label for the full text of the license. |
There is no billing cycle. Scrapy 2.20.0 is released under the BSD-3-Clause. The official website, documentation and PyPI on 2026-11-18 do not give the monthly fee, annual fee, credits or cloud browser quota of the framework. The release time of GitHub releases/latest is 2026-11-06T18:23:09Z, and this page is recorded as 2026-11-06.
The concurrency here is not a paid quota, but a runtime setting. The documentation calls the value written by startproject into settings.py as default, and the value in scrapy.settings.default_settings as fallback. The default value of CONCURRENT_REQUESTS is 16, and fallback is not listed in this excerpt; 0 means no limit. The default for CONCURRENT_REQUESTS_PER_DOMAIN is 1 (fallback 8). The default for DOWNLOAD_DELAY is 1 second (fallback 0). These numbers can be modified within the project and cannot be regarded as a quota that comes with a certain package. For the default and fallback of ROBOTSTXT_OBEY, see "Boundaries and Limitations".
Usage environment
- Requires Python 3.11+. The installation documentation and PyPI's Python requirements are both at this minimum; the 2.20.0 release notes state that Python 3.10 and PyPy are no longer supported.
- Windows: Dependencies with compiled code provide wheels for 64-bit x86, no compiler required. Some wheels are missing on 32-bit or ARM64 Windows, the documentation points to "Installation fails while building a dependency". You can also use WSL to install according to Linux instructions, but the code runs on Linux and the Windows path cannot be used for settings such as FEEDS.
- Linux: Provides manylinux and musllinux wheels. Do not use packages provided by your distribution, such as Debian or Ubuntu's python-scrapy.
- macOS: Both Intel and Apple silicon have wheels. It is not recommended to use the Python that comes with the system. The documentation example is to execute brew install python separately.
- Three installation methods are written in the installation documentation: pip install scrapy in the virtual environment, uv add scrapy in the uv project, and conda install -c conda-forge scrapy.
- When no matching wheel is found, pip builds from source. The fallback for documentation is to switch to an older Python with wheels already in place, or to install from conda-forge with conda/Miniforge.
FAQ
How to choose between Scrapy, BeautifulSoup and lxml?
BeautifulSoup and lxml are libraries for parsing HTML and XML. Scrapy is an application framework for writing crawlers, responsible for request scheduling, crawling and subsequent processing. The FAQ analogy is that comparing them is like comparing jinja2 and Django. When only processing the HTML that has been obtained, the document points to the parsing library; there are BeautifulSoup and lxml in the directory of this site. The FAQ also confirms that BeautifulSoup can be used in Scrapy callbacks.
How to install Scrapy?
The installation documentation requires Python 3.11 and above, and it is recommended to execute pip install scrapy in an independent virtual environment. System-level installation is not recommended. For uv projects, you can use uv add scrapy, or you can execute conda install -c conda-forge scrapy. For differences between wheel and system Python for Windows, Linux and macOS, see "Usage Environment" on this page. The python-scrapy that comes with Linux distributions is usually out of date and the documentation does not recommend using it as a replacement for the above installation.
Is there an official paid package?
Neither scrapy.org, docs.scrapy.org, nor PyPI, read on 2026-11-18, list official paid plans, monthly fees, credits, or cloud browser quotas for the Scrapy framework itself. The way to get it is to install 2.20.0 according to the BSD-3-Clause, not to subscribe. The deployment documentation additionally lists Scrapyd as open source, as well as Zyte's hosting service, Zyte Scrapy Cloud. The prices of those two items are beyond the scope of this reading. The Zyte in the directory on this site is another record, not a verified quote on this page.
Will robots.txt be respected by default?
Look at both sets of values at the same time. The settings document writes ROBOTSTXT_OBEY as Default True (fallback False): default refers to the value written in settings.py by scrapy startproject, and fallback refers to the value in scrapy.settings.default_settings. The same page also explains that although the default value is False for historical reasons, the settings.py generated by startproject will enable this item. Therefore, projects created with startproject will be opened in settings.py to comply with robots.txt; if this generated file is not passed and fallback is reached, the document will be written as False. This page does not combine these two sentences into a single default.
What to do when the page relies on JavaScript to see the data?
The dynamic content document says that if it can be seen in the browser and the selector cannot be obtained after downloading Scrapy, you should first find the data source and then extract it. Headless browsers are the option after that. The default download will not execute the JavaScript in the page. Starting playwright-python directly in the callback will bypass components such as middlewares and dupefilter. The documentation recommends using scrapy-playwright for integration. The official website lists scrapy-playwright as an extension that can render pages that rely on JavaScript. This page does not run it, nor does it write it as the rendering that comes with the framework.
Is this an evaluation after a hands-on test?
No. This page was compiled by Northleaf Studio on 2026-11-18 based on the official page. There is no hands-on test, no rating or ranking.
Source
This page is organized by Northleaf Studio. Verification date 2026-11-18. The source link points to the original page and does not jump through this site.
- Official website home page
Verification date 2026-11-18. Six parts, official expansion list, and release list for v2.20.0, v2.19.0, v2.18.0. Marketing stars, number of contributors and scope of use are not included in the text.
- Document homepage
Verification date 2026-11-18. The page is titled Scrapy 2.20 documentation. It is positioned as a fast high-level web crawling and web scraping framework, and its uses include data mining, monitoring and automated testing.
- Scrapy at a glance
Verification date 2026-11-18. Pronunciation, usage of the API and universal crawlers, runspider examples, selectors, shells, feed exports and list of built-in extensions.
- Installation documentation
Verification date 2026-11-18. Python 3.11+, pip, uv, conda-forge, and wheel and system package instructions for Windows, Linux, macOS.
- Tutorial
Verification date 2026-11-18. scrapy startproject tutorial, practice site https://quotes.toscrape.com.
- Architecture overview
Verification date 2026-11-18. Nine-step data flow, component lists, and non-blocking concurrency with Twisted. The illustration is based on this text, not the architectural PNG on the page.
- Setup document
Verification date 2026-11-18. The definitions of default and fallback, as well as the settings referenced on this page.
- Release Notes
Verification date 2026-11-18. Highlights of Scrapy 2.20.0 (2026-11-06), security fixes, and end of support for Python 3.10 and PyPy.
- dynamic content
Verification date 2026-11-18. Find the data source first; the difference between using playwright-python and scrapy-playwright directly.
- deploy
Verification date 2026-11-18. The difference between local development and continuous operation, official description of Scrapyd and Zyte Scrapy Cloud. Price page not read.
- FAQ
Verification date 2026-11-18. Comparison with BeautifulSoup, lxml, cookies, proxies, IPv6, and runspider. The section on banning only points to it and does not paraphrase the main text.
- asyncio
Verification date 2026-11-18. Experimental description of TWISTED_REACTOR_ENABLED when set to False, and the default AiohttpDownloadHandler.
- Feed exports
Verification date 2026-11-18. JSON, JSON lines, CSV, XML, as well as local file system, FTP, FTPS, S3, Google Cloud Storage, and stdout.
- common practice
Verification date 2026-11-18. Only the chapter titles are checked: scripts, existing applications, Jupyter, multiple spiders in the same process. There are no restrictions on excerpting individual chapters.
- PyPI:Scrapy v2.20.0
Verification date 2026-11-18. Version number, BSD-3-Clause and Python >=3.11. The number of downloads is not written in the text.
- GitHub repository
Verification date 2026-11-18. Source code location. Star rating and number of contributors have not been independently verified and are not cited in the text.
- GitHub releases/latest
Verification date 2026-11-18. The Published time of 2.20.0 is 2026-11-06T18:23:09Z.
- BSD-3-Clause License Original Text
Verification date 2026-11-18. The copyright line is Copyright (c) Scrapy developers. All rights reserved. Terms include retention of copyright and disclaimer, no endorsement by name, and provided AS IS.
- Large scale crawling (latest)
Verification date 2026-11-18. The text is empty when read on 2026-11-18, so there is no paraphrase suggestion.
- Crawl at scale (2.20)
Verification date 2026-11-18. The text is empty when reading on the same day.
- Large-scale crawling (master)
Verification date 2026-11-18. The text is empty when reading on the same day.
Not verified in this review
- 2026-11-18 Read https://docs.scrapy.org/en/latest/topics/broad-crawls.html, and the corresponding pages of /en/2.20/ and /en/master/. The text is empty, so the suggestions for large-scale crawling of dedicated pages are not reproduced.
- There is no independent verification of the GitHub stars, number of contributors, and "most widely used" statements in the official website's marketing sentences, and these numbers are not quoted in the text.
- The Zyte Scrapy Cloud or Scrapyd pricing and quota pages were not read.
- No hands-on or performance testing was done.
- The default values of COOKIES_ENABLED, AUTOTHROTTLE_ENABLED, COMPRESSION_MAX_ENCODINGS have not been checked in this excerpt.