Softwr

Web Scraping Tools · head to head

Scrapy vs Selenium

Scrapy logo

Scrapy

Web Scraping Tools

Open-source Python framework for crawling sites and extracting data

From
Free
Free plan
Yes
Selenium logo

Selenium

Testing

Browser automation framework and the W3C WebDriver standard

From
Free
Free plan
Yes

The short version

  • Scrapy is a BSD-licensed Python framework for writing spiders.
  • Both are free.
  • Only Scrapy lists asynchronous crawling engine; only Selenium lists W3C WebDriver.
  • Where Scrapy falls short: requires writing Python code; there is no graphical interface.
  • Where Selenium falls short: flaky tests are the standing complaint: explicit waits and synchronisation are the tester’s job, where newer tools handle it automatically.

How do Scrapy and Selenium differ?

Scrapy and Selenium differ on pricing model, platforms and category (Web Scraping Tools against Testing). Only the attributes on which Scrapy and Selenium actually diverge.

Attributes where Scrapy and Selenium differ
AttributeScrapySelenium
Pricing modelOpen-sourceOpen source, no licence fee
PlatformsWindows, macOS, LinuxLinux, macOS, Windows, Web
CategoryWeb Scraping ToolsTesting
Founded20082004

Identical on both: starting price (Free), free tier (Yes).

Which features does each one have?

They share no listed features; 6 appear only for Scrapy and 4 only for Selenium. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Scrapy

  • Asynchronous crawling engine
  • Spiders using CSS or XPath selectors
  • CrawlSpider and SitemapSpider for common crawl patterns
  • Interactive shell for testing selectors
  • Feed exports to JSON, CSV, S3 and other formats
  • Extensions for JavaScript rendering, validation and proxy rotation

Only in Selenium

  • W3C WebDriver
  • Many language bindings
  • Selenium Grid
  • Broad browser support

What is each one used for?

Scrapy is most often brought in for large scale crawling of many pages; Selenium for cross-browser testing where Safari and legacy browsers must be covered. The jobs each tool is most often brought in to do.

Scrapy

  • Large scale crawling of many pagesnot Selenium
  • Extracting structured data into JSON or CSVnot Selenium
  • Building scrapers inside Python data pipelinesnot Selenium
  • Sitemap-driven site crawlsnot Selenium

Selenium

  • Cross-browser testing where Safari and legacy browsers must be coverednot Scrapy
  • Teams whose test suites are written in Java or C# rather than JavaScriptnot Scrapy
  • Distributing a large suite across a grid of machinesnot Scrapy

Where do Scrapy and Selenium fall short?

Scrapy's most cited limit: requires writing Python code; there is no graphical interface. Selenium's: setup involves drivers, versions and grid infrastructure that Playwright and Cypress bundle away. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Scrapy

  • Requires writing Python code; there is no graphical interface
  • Does not execute JavaScript without an extension such as scrapy-playwright
  • Proxy rotation, anti-ban and hosting rely on add-ons or paid services
  • Deployment and monitoring need separate tooling such as Scrapy Cloud

Selenium

  • Flaky tests are the standing complaint: explicit waits and synchronisation are the tester’s job, where newer tools handle it automatically
  • Setup involves drivers, versions and grid infrastructure that Playwright and Cypress bundle away
  • Slower to run than tools that talk to browsers over a debugging protocol rather than WebDriver

How much do Scrapy and Selenium cost?

Scrapy is free to use; Selenium is free to use. Plan by plan below, from each vendor's own pricing page.

Scrapy

Free

No published plan breakdown. See the Scrapy review.

Selenium

Free
  • SeleniumFree
    • Full functionality
    • Unlimited tests
    • Community support

Which should you pick?

Choose Scrapy if

  • You need asynchronous crawling engine.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want spiders using css or xpath selectors.

Choose Selenium if

  • You need w3c webdriver.
  • You want to start without paying.
  • You work on Linux, macOS, Windows, Web.
  • You also want many language bindings.

Questions people ask

Is Scrapy or Selenium better?
It depends on the job. Scrapy fits large scale crawling of many pages; Selenium fits cross-browser testing where Safari and legacy browsers must be covered. Scrapy starts at Free and Selenium at Free.
Which is cheaper, Scrapy or Selenium?
Scrapy starts at Free and Selenium at Free.
Does Scrapy or Selenium run on more platforms?
Scrapy runs on Windows, macOS, Linux. Selenium runs on Linux, macOS, Windows, Web.
Can I use Scrapy for free?
Both have a free tier, so you can try either at no cost before committing.
What is Scrapy best used for?
Scrapy is most often used for large scale crawling of many pages, extracting structured data into json or csv, building scrapers inside python data pipelines, sitemap-driven site crawls. Of those, large scale crawling of many pages and extracting structured data into json or csv are not what Selenium is typically brought in for.
What can Scrapy do that Selenium cannot?
Scrapy covers Asynchronous crawling engine, Spiders using CSS or XPath selectors, CrawlSpider and SitemapSpider for common crawl patterns, Interactive shell for testing selectors. Selenium covers W3C WebDriver, Many language bindings, Selenium Grid, Broad browser support.

Answered from the vendors’ own pages

Scrapy: What licence does Scrapy use?

Scrapy is released under the BSD licence and is written in Python.

Source
Selenium: Is Selenium free?

Yes, open source with no licence fee. Paid costs come from grid infrastructure or services like BrowserStack.

Scrapy: Who maintains Scrapy?

Zyte, formerly Scrapinghub, became the official maintainer in 2011. The project also has many outside contributors.

Source
Selenium: Selenium or Playwright?

Playwright handles waiting automatically and is faster to set up, which removes most flakiness complaints. Selenium wins on language breadth, browser coverage including Safari, and existing suites you already have.

Scrapy: Can Scrapy scrape JavaScript-heavy sites?

Not on its own. The Scrapy site lists scrapy-playwright as an extension for JavaScript rendering.

Source
Selenium: Is Selenium still relevant?

Yes. Its WebDriver protocol is a W3C standard implemented by every major browser, and very large existing suites are not rewritten cheaply.

Share

Related pages

Other head to heads