# Choosing a web scraping stack in 2026 | Spider Blog

Does your scraping stack need a browser? In a November 2026 run a plain fetch returned at least 90% of a browser's words on 26 of 29 pages.

Canonical: https://spider.cloud/blog/developers-guide-choosing-scraping-stack-2026/

Scraping stacks often get chosen by language: Scrapy because the team writes Python, Playwright because someone used it for tests. The question that sets the bill comes first, though. Do your pages need a browser?

On November 16, 2026 we fetched 29 documentation, news and store product pages twice, once as a plain HTTP request and once rendered in a browser. The plain fetch returned at least 90% of the browser’s words on 26 of them. Its median cost was $0.36 per 1,000 requests against $1.40 rendered, and its median wall time 1.5 seconds against 10.0. Spider costs from $0.16 per 1,000 pages, measured on light static pages on November 17, 2026, and cost varies by site.

At 100,000 pages a month, rendering every page comes to about $140 on that meter and fetching every page plain to about $36. Those totals are computed from the run’s medians, not measured at that volume. A longer run on store pages points the same way. From November 6 to 17, 2026, forcing a browser on 25 store product pages cost $2.342 per 1,000 pages sent at the twelve-day median, and letting Spider choose per page cost $1.388.

## Test your own pages before you pick anything

The script below sends each URL twice through the scrape endpoint and prints the word count and cost of each mode. It turns the cache off, so the browser request cannot reuse the plain one, and it stops on a failed page. Put in the pages your project needs. It needs `requests` and a key in `SPIDER_API_KEY`.

```python
import os
import requests

URLS = [
    "https://crates.io/crates/serde",
    "https://docs.python.org/3/library/asyncio.html",
]

def fetch(url, mode):
    resp = requests.post(
        "https://api.spider.cloud/scrape",
        headers={"Authorization": f"Bearer {os.environ['SPIDER_API_KEY']}"},
        json={"url": url, "request": mode, "return_format": "markdown", "cache": False},
        timeout=120,
    )
    resp.raise_for_status()
    page = resp.json()[0]
    if page.get("status") != 200:
        raise RuntimeError(f"{url} {mode}: status {page.get('status')} {page.get('error')}")
    words = len((page.get("content") or "").split())
    cost = (page.get("costs") or {}).get("total_cost")
    return words, cost

for url in URLS:
    plain_words, plain_cost = fetch(url, "http")
    full_words, full_cost = fetch(url, "browser")
    share = f"{plain_words / full_words:.0%}" if full_words else "n/a"
    print(f"{url}\n  plain {plain_words} words, cost {plain_cost}"
          f"  browser {full_words} words, cost {full_cost}  plain/browser {share}")
```

In the November 16 run the serde page on crates.io came back as 4 words plain, just the site title, and 276 words rendered. The plain request cost $0.0000212 and the rendered one $0.000664. That page needs a browser. Most of the documentation and news pages did not, and on 13 of the 29 the two modes returned the same number of words.

A word count shows how much came back, not whether it is the content you wanted, so read a sample of each mode’s output before you settle on one.

## If the pages answer a plain fetch

Scrapy is the long-standing Python option, BSD-3-Clause, with middleware for proxies and pipelines for cleaning and storing items. Colly is the Go equivalent, Apache-2.0, and builds into one binary. The spider crate is ours, MIT, written in Rust, with robots.txt, sitemaps and a crawl budget built in. Its CLI is the quickest way to try it:

```bash
cargo install spider_cli
spider -u https://fastapi.tiangolo.com/ -r --limit 100 scrape > fastapi.json
```

`-r` makes it honor robots.txt. Without a key it crawls from your own machine. Save a key with `spider authenticate --paste`, add `--spider-cloud-mode proxy`, and the same command sends its requests through Spider’s proxy. Run that way with spider_cli 2.52.3 on November 17, 2026, it returned 100 pages of the FastAPI docs in about 3 seconds in each of three runs.

## If some pages are built in the browser

Playwright and Puppeteer, both Apache-2.0, drive a real browser and let you click, scroll and wait for an element. Playwright covers Chromium, Firefox and WebKit. Puppeteer is Chrome first. Selenium, also Apache-2.0, is the older choice and makes most sense when you already have a Selenium suite. Every rendered page costs a browser’s memory and seconds of wall time, so the run’s 1.5 against 10.0 seconds is the number to plan around.

If only some pages need a browser, do not render the rest. In Spider the default `smart` mode tries a plain fetch and opens a browser only when the page needs one. At the twelve-day median it cost the same per 1,000 pages as plain `http` on four fixed page sets, within a third of a cent. Hosted APIs price rendering in other ways. ScrapingBee charges 1 to 75 credits a request depending on rendering and proxy tier, so the same 100,000 pages can land on very different plans.

If the site needs a login or a session that carries state across many pages, write it in Playwright. Spider’s `automation_scripts` field runs click, fill, wait and scroll steps per path, which covers a button or a form. A login that has to carry across many pages is easier to script and debug in a [browser you drive yourself](/browser/).

## If you want the crawl run for you

A framework adds the queue, retries and concurrency. Crawlee, Apache-2.0 from the Apify team, does this for Node.js and Python and can switch between plain HTTP and a browser. Crawl4AI, Apache-2.0 with an attribution clause, is a Python crawler that returns markdown for LLM pipelines. Both run on your machines, so the proxies and the compute are still yours.

A hosted API takes those on and bills per page or per credit. On the dates in the sources, Firecrawl’s Standard plan was $99 a month for 100,000 credits, ScrapingBee’s Freelance plan was $49 for 250,000 credits, and Bright Data’s Web Unlocker was $1.50 per 1,000 successful requests on pay as you go. Those are list prices, and ours are measured, so they do not divide into a ratio. The [AI scraping API comparison](/blog/best-web-scraping-apis-for-ai-2026/) puts the hosted options side by side at 100,000 pages.

If the pages go into an LLM, ask for markdown, or strip the HTML yourself before it reaches the model. On ten public pages on November 5, 2026, the median page was 72,093 tokens as raw HTML and 4,384 as markdown.

## Which stack for which job

| Job                                                  | Start with                                                | What decides it                                                                 |
| ---------------------------------------------------- | --------------------------------------------------------- | ------------------------------------------------------------------------------- |
| Docs, articles or product pages you can list         | A plain HTTP library, or an API in `http` or `smart` mode | A plain fetch returned at least 90% of a browser’s words on 26 of 29 such pages |
| A site that builds its pages with JavaScript         | Playwright, or an API’s browser mode                      | The serde page was 4 words plain and 276 rendered                               |
| Logins and sessions across many pages                | Playwright                                                | You have to script the session                                                  |
| A whole docs site as markdown for an LLM             | A crawl API, or Crawl4AI on your own machines             | Markdown was 4,384 tokens a page at the median against 72,093 raw               |
| One named site that already has a maintained scraper | Apify’s Actor store                                       | Someone else keeps the selectors current                                        |
| Thousands of pages a day you do not want to operate  | A hosted API with per page billing                        | Proxies and retries are the provider’s work                                     |

## What the run does not tell you

The 29 pages were public documentation, news and store pages, fetched once per mode from one client. They say nothing about pages behind a login, and the run did not test field extraction. Your sites will differ, which is why the script above comes first.

## Frequently asked questions

### Do I need a headless browser for web scraping?

For most documentation, news and store product pages, no. In a run on November 16, 2026 a plain HTTP fetch returned at least 90% of the words a browser returned on 26 of 29 such pages. Pages that build their content with JavaScript are different: on 8 of 10 pages picked in advance as likely to need a render, the plain fetch returned under half of the rendered words.

### How much more does rendering every page cost?

In the same run the median cost on Spider's pay as you go meter was $0.36 per 1,000 requests for a plain fetch and $1.40 rendered, and the median wall time was 1.5 seconds against 10.0. At 100,000 pages a month that comes to about $36 against $140, computed from the medians. Cost varies by site.

### Should I self-host a scraper or use a scraping API?

Self-host when your sites are few, stable and answer a plain fetch, and you already run servers. Use an API when you need proxies, rendering on some pages or a crawl you do not want to schedule yourself. The spider crate and its CLI run on your own machine, and with a key the same CLI can send its requests through Spider's proxy.

### Which open source scraping libraries can I use in a commercial product?

All of the ones in this guide allow commercial use, on different terms. As read from GitHub on November 18, 2026: Scrapy is BSD-3-Clause, the spider crate is MIT, and Playwright, Puppeteer, Selenium, Colly, Crawlee and Crawl4AI are Apache-2.0. Crawl4AI adds an attribution clause. Firecrawl's engine is AGPL-3.0, which asks you to publish changes if you offer a modified version as a network service.

## Sources

1. [How web scraping works, measured run of 2026-11-16: 29 pages fetched plain and rendered, plus 10 pages built in the browser](https://spider.cloud/blog/how-web-scraping-works/)
2. [Web scraping at scale, twelve days of cost per 1,000 pages by mode, 2026-11-06 to 2026-11-17](https://spider.cloud/blog/true-cost-of-web-scraping-at-scale/)
3. [Measured run, 2026-11-05: tokens in ten public pages as raw HTML and as markdown](https://spider.cloud/blog/what-a-web-page-costs-in-tokens/)
4. [Spider CLI, 100 pages of a docs site in about 3 seconds, runs of 2026-11-17](https://spider.cloud/blog/spider-cli-web-scraping-at-scale/)
5. [Spider pricing guide, light static pages measured 2026-11-17](https://spider.cloud/guides/pricing-and-plans/)
6. [Firecrawl pricing, read 2026-11-17](https://www.firecrawl.dev/pricing)
7. [ScrapingBee pricing, read 2026-11-17](https://www.scrapingbee.com/pricing/)
8. [Bright Data Web Unlocker pricing, pay per successful request, read 2026-11-17](https://brightdata.com/pricing/web-unlocker)
9. [GitHub licenses, read 2026-11-18: scrapy/scrapy, microsoft/playwright, puppeteer/puppeteer, SeleniumHQ/selenium, gocolly/colly, apify/crawlee, unclecode/crawl4ai, firecrawl/firecrawl, spider-rs/spider](https://github.com/spider-rs/spider)
