Scrapy — open source web scraping framework for Python
Scrapy — open source web scraping framework for PythonNew: the Scrapy MCP Server lets AI agents inspect and debug live crawls.Get startedDocsExtensionsBuild with AIDeployResourcesDocsExtensionsBuild with AIDeployResourcesGitHubMaintained by Zyte with over 500 other contributorsForks0Stars0The world’s most-used open source data extraction frameworkCrawl sites, extract structured data, and ship it anywhere. Lean by design, extensible by nature — trusted by professionals extracting public web data at scale.$uvaddscrapyRead the docsquotes — zsh$ The tutorial spider, crawling quotes.toscrape.com15+years in production500+contributors65.7kGitHub stars12.2kforksExtensionsA lean core. Everything else is a plugin away.Scrapy handles the crawling. Battle-tested extensions from the community and Zyte add browser rendering, monitoring, anti-ban, and now direct access for AI agents.Scrapy MCP Serverscrapy-mcp-officialNewMCP lets AI agents like Claude connect directly to your tools. This server gives them live access to running crawls — list jobs, check status, and execute Python inside the crawl process without leaving your agent.$claude mcp add --scope user scrapy-mcp -- uvx --from scrapy-mcp-official scrapy-mcpView on GitHubLearn moreBuilt by ZyteBrowser renderingscrapy-playwrightRender JavaScript-heavy pages in a real browser while keeping the request/response workflow you already use.Learn moreMonitoringspidermonValidate scraped data and get alerted on Slack, Discord, or email the moment a spider breaks.Learn moreAnti-banscrapy-zyte-apiAutomatic proxy rotation, browser fingerprinting, and ban avoidance through Zyte API — no infrastructure to run.Learn morePage objectsscrapy-poetSeparate extraction from crawling so each piece can be tested and reused on its own.Learn moreView all extensionsHow it worksLean by designSix small parts around one asynchronous engine, every one of them pluggable. Pick a part to see the code — and what it produces.01SchedulerQueues and prioritizes requests02DownloaderFetches pages concurrently03SpiderYour code: parse and follow04ItemsStructured records05PipelinesValidate, clean, store06Feed exportsJSON, CSV, S3 and moreStep 03 · SpiderSpiders are the part you write. They receive responses, pull data out with CSS or XPath selectors, yield items, and follow links to discover more pages.Extend it: Generic spiders like CrawlSpider and SitemapSpider cover the common crawl patterns for you.Read the docsspiders/quotes.pyCopyimport scrapyclass QuotesSpider(scrapy.Spider): name = "quotes" start_urls = ["https://quotes.toscrape.com/"] def parse(self, response): for quote in response.css("div.quote"): yield { "text": quote.css("span.text::text").get(), "author": quote.css("small::text").get(), } yield from response.follow_all( css="li.next a", callback=self.parse )items.jsonl{"text": "The world as we have created it is a process of our thinking.", "author": "Albert Einstein"}{"text": "It is our choices, Harry, that show what we truly are.", "author": "J.K. Rowling"}[engine] DEBUG: Crawled (200) <GET …/page/2/>{"text": "This life is what you make it.", "author": "Marilyn Monroe"}Try selectors before you write the spiderThe interactive shell loads any page so you can test CSS and XPath live. Shell docs$scrapy shell "https://quotes.toscrape.com"The Engine drives all six asynchronously. See the full architectureWorkflowFrom first spider to productionThe same project that runs on your laptop scales to millions of pages — with tooling for every step along the way.1BuildScaffold a project in one command — or hand a URL to an AI agent with Scrapy Agent Skills and get a tested spider back.$scrapy startproject quotesBuild with AI2Run & debugTry selectors in the interactive shell, then inspect live crawls straight from your agent with the Scrapy MCP Server.$scrapy shell "https://quotes.toscrape.com"Shell docs3Deploy & monitorPush to Scrapy Cloud, schedule runs, and let spidermon alert you the moment your data drifts.$shub deployDeployActively maintainedFifteen years of releases, and countingRegular releases from a team of maintainers and 500+ contributors, with a deprecation policy that keeps upgrades boring.v2.20.0LatestNovember 2026Web-browser-like detection of response encodings, base URLs and meta refresh redirects, powered by frostworkRequests can be awaited to get their responseRelease notesv2.19.0September 2026New RemoteControl extension which allows inspecting and controlling a running crawl over HTTP, used by the Scrapy MCP serverExperimental aiohttp-based download handler (now the default when running without a reactor)Release notesv2.18.0August 2026HttpxDownloadHandler now uses httpx2The Twisted-based HTTP/2 download handler is no longer experimentalRelease notesView full ...