Guides

What is web scraping? Every question people ask, answered (2026)

By · Published · Updated

TL;DR

  • Web scraping means a program copies data from web pages into a file you can use, like a spreadsheet.
  • Reading public pages is often legal. The risk sits in personal data, logins, site terms and getting past blocks.
  • Start free: let your AI write a small scraper. Pay for proxies or scraping APIs only when a site blocks you.

Every question below is one people really type into Google or ask on Reddit and Stack Overflow. Each gets a short answer first, then a link to the page that goes deep.

What is web scraping, and how is it different from crawling?

What is web scraping?

Web scraping is when a program visits web pages and copies the parts you want into a file. Think prices, job ads, reviews or addresses, saved as rows in a spreadsheet instead of copied by hand.

The program asks the site for a page, like your browser does. Then it picks out the fields and saves them.

What is web scraping used for?

Anything where the data sits on web pages and nobody sells it as a file. Common jobs:

  • watching prices and stock on shops,
  • collecting job ads, property listings or reviews,
  • building a list of businesses in one city,
  • feeding pages to an AI model or an AI assistant.

Web scraping vs web crawling: what’s the difference?

A crawler finds pages. A scraper takes data out of them.

A crawler starts at one page and follows links to find more, like Google’s bots do. A scraper reads a page and pulls out set fields. Most real projects do both: crawl to find the product pages, scrape each one.

Is web scraping the same as using an API?

No. An API is a door the site built for programs, and it hands you clean data. Scraping reads the pages built for people.

If a site has an API that gives you what you need, use it. It breaks less. Scrape when there is no API, or when it costs too much or leaves out the data you need.

Is web scraping reliable?

For a while. A scraper depends on how the page is built, so it breaks when the site changes its layout. It can also stop when the site starts blocking you.

Plan for both: make your scraper print what it got on each page, so you see the day it returns nothing.

Is web scraping hard to learn?

Not anymore. You can describe what you want to an AI assistant and it writes the code. We did that on 2026-11-16: Claude Sonnet 5.5 wrote a Python scraper that saved 1,000 books from 50 pages in 1 minute 37 seconds. The full prompt is in how to scrape a website.

The hard part comes later: sites that block bots.

Under the hood, a page visit is one question and one answer.

Your program sends an HTTP request: “give me this URL”. The site answers with a status code (200 = OK, 404 = not found, 403 = refused) and the page as HTML, the text-and-tags format browsers draw.

The scraper then reads the HTML like a tree of boxes inside boxes. Selectors point at the box you want, for example “the price inside each product card”.

A crawler adds a to-do list. It saves every new link it finds, skips ones it has seen, and works through the list. That list is why crawlers can run for days, and why they need a speed limit.

An API skips the HTML: it answers with data only, usually JSON.

Often, yes. Reading public pages with a program is not banned in itself, in the US or the EU. The risk comes from what you take and how: personal data, pages behind a login, breaking a site’s terms, and getting around its blocks.

The full answer, EU and US side by side, is in is web scraping legal.

Is web scraping illegal?

Not by default. It turns risky with personal data, terms you agreed to, getting around a lock, or hammering a site. The short answer.

Is web scraping illegal in the US?

Scraping public pages is very likely not a federal crime, after two rulings (Van Buren 2021, hiQ 2022). The US rules.

It can be, but the GDPR applies as soon as you collect personal data, even public names, faces or emails. The EU rules.

Is AI scraping illegal?

Not as such, but in the EU you must respect machine-readable opt-outs. AI scraping and the law. Sites push back too: see does Cloudflare block AI scrapers?

Can you get sued for web scraping?

Yes. Google sued SerpApi in December 2025; the court has dismissed it twice so far. What gets scrapers sued.

No court has settled it. Where the Google case stands, and what changed for scrapers: how to scrape Google search results.

It can be, but commercial use is where sites say no in writing, so read the terms. Commercial use.

Is email scraping illegal?

In the EU an email address that names a person is personal data, so the GDPR applies. Email scraping, EU and US.

Is web scraping ethical?

It is when you go slow, skip personal data you don’t need, and read robots.txt and the terms. What a fair scraper does.

Does robots.txt make scraping illegal?

No. Its own standard says it is not a lock, but ignoring it shows you knew what the owner wanted. robots.txt and the law.

Do hackers use web scraping?

Some do, to collect emails for spam. The method is neutral. What decides the line.

Using a proxy is legal. Where its IPs come from is the question: what is an ethical proxy, and the seizures in residential proxy takedowns.

Can ChatGPT scrape a website?

Yes, a few pages at a time. ChatGPT’s cloud browser can read pages, click buttons, fill forms and sign in, inside ChatGPT Work. It runs on paid plans, not Free or Go.

For hundreds or thousands of pages, ask ChatGPT to write you a scraper instead. That’s faster, cheaper and you can run it again tomorrow.

Why can’t ChatGPT open some websites?

Because the site blocks it. OpenAI says some sites restrict automated browser agents, “even if the same website works normally in your own browser.” The site sets that rule, not ChatGPT.

Is ChatGPT agent still available?

No. OpenAI’s help page now says “ChatGPT agent is no longer available”. It points you to ChatGPT Work and its cloud browser instead. The ChatGPT desktop app also has a built-in browser you share with ChatGPT.

How do I scrape a website with Claude?

Two ways. In a chat, ask Claude to write a scraper, then run it yourself. That’s how we got the 1,000-book run above.

In code, the Claude API has a web fetch tool. It pulls the full text of a URL into the conversation. It costs nothing extra beyond normal token costs, and Claude only fetches when you point it at a specific page.

How do I scrape a website with AI?

Pick by how many pages you need:

pages use
1 to 20 an AI assistant with a browser or fetch tool
hundreds to millions a scraper your AI writes for you (how to scrape a website)
many different sites, messy layouts an AI scraper that turns pages into Markdown or JSON (AI scrapers)

What is an AI web scraper?

A tool that uses a language model to read a page and give back clean text or fields, so you don’t write rules for each site. Firecrawl, Crawl4AI, ScrapeGraphAI and Jina Reader are examples. See them side by side in AI scrapers.

Firecrawl vs Apify: which one?

They do different jobs. Firecrawl is an API that turns pages into data for an LLM. Its free plan gives 1,000 credits a month, and a plain scrape costs 1 credit per page.

Apify is a platform where you build, run and schedule scrapers, with ready-made ones for popular sites. Compare them on AI scrapers and scraping platforms.

Should I use an LLM or CSS selectors to pull out data?

Same site every day: selectors. Many different sites once: the LLM. Our full reasoning, with prices, is in LLM or selectors below.

Here’s how the AI tools actually reach a page.

ChatGPT’s cloud browser is a browser on a separate computer that OpenAI runs. It has its own sessions, so it does not use accounts you are signed into on your device. It can keep working after you close your laptop, and it pauses when it needs a login or your OK.

Claude’s web fetch is a server tool: Anthropic’s side downloads the page during your request and puts the text into the chat. PDFs come in as documents. Newer versions (web_fetch_20260209 and later) let Claude write code to filter a long page before reading it, which saves tokens.

Why a script still wins at volume: every fetched page becomes tokens you pay for. A scraper your AI writes costs nothing per page.

How do I scrape a website?

How to scrape a website (or how to scrape data from a website)?

  1. Pick the site and the fields you want.
  2. Paste our prompt into ChatGPT, Claude or Cursor. It writes a Python script.
  3. Run it. It saves results.csv and results.json.
  4. If it stops, read the error code it prints.

The full walk-through, with a practice site made to be scraped, is in how to scrape a website.

How do I scrape data from a website to Excel?

Save the data as a CSV file. Excel and Google Sheets open it directly. Every scraper our prompt builds writes results.csv for this reason.

How do I scrape a website for text?

Fetch the page, then strip the HTML tags and keep the words. In Python that’s Requests plus Beautiful Soup. If you want clean text for an AI, an AI scraper that returns Markdown saves a step.

How do I start web scraping with Python?

Use two free libraries: Requests to download pages and Beautiful Soup to pull data out of the HTML. Practise on a site built for it, like books.toscrape.com. Our step-by-step guide does exactly this.

Can I scrape a website without coding?

Yes. Ask an AI assistant to do a few pages for you, or to write the code and tell you how to run it. For a ready tool, see scraping platforms, many of which have point-and-click scrapers.

How do I scrape a website that requires login with Python?

Log in once in your script, keep the cookies the site sends back, and send them with every next request. A browser tool like Playwright can type the login for you if the form is tricky.

Be careful here. Logging in means you accepted the site’s terms. Instagram’s terms, for example, ban collecting information in an automated way without its permission, “regardless of whether” you are logged in.

Every simple scraper does the same five things in a loop:

  1. Ask the site for a page (an HTTP request, like your browser sends).
  2. Check the status code. 200 means OK. Anything else, stop and print it.
  3. Pick out the fields with selectors: rules like “the title is in the h3 link”.
  4. Find the next page link, and wait 1 to 2 seconds.
  5. Save everything to CSV and JSON at the end, or as you go.

CSV is plain text with commas between the columns, which is why every spreadsheet opens it. JSON keeps nested data, like a list of tags per item, that a flat table can’t.

Practise on a site built for scraping first. On a real site, a mistake in step 4 can send thousands of requests by accident.

How do I scrape JavaScript sites?

How to scrape a JavaScript website?

First look for the data the page loads in the background. Open your browser’s developer tools, go to the Network tab, filter by Fetch/XHR and reload. Often the data comes as clean JSON you can request directly.

If there’s no such request, use a real browser from code: Playwright, Puppeteer or Selenium. It runs the JavaScript, then you read the finished page.

Why does my scraper get an empty page?

Because the site builds the page with JavaScript after it loads. A plain request gets the empty shell. Use the hidden-API trick above, or a browser tool.

How do I find a site’s hidden API?

Developer tools, Network tab, Fetch/XHR, reload, then scroll or click the thing you want. Watch which request returns your data. Copy it as cURL and ask your AI to turn it into code.

How do I wait for the page to load before scraping?

With a browser tool, wait for a specific element to appear, not a fixed number of seconds. A plain requests.get can’t wait, because it never runs the JavaScript.

How do I scrape infinite scroll?

Infinite scroll usually calls a hidden API with a page number or a cursor (a code that says “give me the next batch”). Find that request in the Network tab and loop over it. That beats scrolling a browser for hours.

Many modern sites send your browser an almost empty page plus a program. The program then asks the server for the data, usually as JSON, and draws it on screen. A plain request only gets the empty page, because nothing runs the program.

That’s why the Network tab is the first stop. The JSON your browser receives is the same data, already clean, and much smaller than the full page. Fewer bytes also means a smaller proxy bill.

A browser tool is the fallback. It runs the program like Chrome does, so you get the finished page. The price: it is slower, uses more memory, and downloads images, fonts and scripts too.

On infinite scroll, a cursor is a code the server hands back with each batch. You send it with the next request to get the batch after it.

Which tool should I use?

We don’t name a “best” tool until our own test runs exist. Here is what each one is, from its own docs.

Puppeteer vs Playwright?

Both drive a real browser from code.

Puppeteer Playwright
browsers Chrome or Firefox (docs) Chromium, WebKit and Firefox (docs)
languages JavaScript JavaScript, plus Python
runs by default headless (no window) headless in tests

Writing in Python? That alone points to Playwright.

Scrapy vs BeautifulSoup?

Different sizes of tool. Beautiful Soup is a Python library for pulling data out of HTML. It doesn’t download anything.

Scrapy is a whole framework for crawling sites and extracting data. It handles the queue, the downloads and the saving. Small job: Requests plus Beautiful Soup. Thousands of pages on a schedule: Scrapy.

BeautifulSoup vs Selenium?

Beautiful Soup reads HTML you already have. Selenium is a project of tools that automate a real browser. Use Selenium (or Playwright) when the page needs JavaScript, then hand the HTML to Beautiful Soup if you like its style.

Selenium vs Playwright for scraping?

Both drive real browsers and both work for scraping. Selenium is an umbrella project of browser automation tools and libraries. Playwright is one library that supports Chromium, WebKit and Firefox. Compare them on browser automation.

What is a web scraping API?

You send a URL, it sends back the page. The service handles proxies, retries, browsers and CAPTCHAs for you. You pay per request. Prices are in how much does web scraping cost below, and the list is in scraper APIs. To price your own volume, use the scraper API cost calculator.

What is the best web scraper?

It depends on the site, so we don’t crown one without measured runs. Our rating scores tools from 0 to 100 on facts from their own pages, by a public formula, until our test runs replace it. Start with scraper APIs or browser automation.

Is there a free web scraper?

Yes. Requests, Beautiful Soup, Scrapy, Playwright, Puppeteer and Selenium are all free and open source. Hosted tools have free tiers too: Bright Data’s Web Unlocker gives 5,000 requests a month, Firecrawl 1,000 credits a month.

The tools fall into three jobs. Knowing which job you need picks the tool.

  • Download pages: Requests in Python. Fast, no browser.
  • Read HTML: Beautiful Soup works with the parser you choose to navigate, search and change the page tree. It never touches the network.
  • Drive a browser: Playwright, Puppeteer, Selenium. Puppeteer controls Chrome or Firefox over the DevTools Protocol or WebDriver BiDi (two ways a program talks to a browser), headless by default. Playwright runs on Windows, Linux and macOS, headless or with a window.

Scrapy does download plus read plus the crawl loop in one framework. Use it when the job is “whole site, every week”, not “one page, once”.

None of these is ranked by a test of ours. Pick by job and language.

How do I avoid getting blocked?

How to avoid getting blocked while scraping?

Slow down, send real browser headers, keep cookies, and only then pay for proxies. Sites check your IP, speed, headers, connection “handshake”, browser and behaviour. The error you get tells you which check caught you.

Cheapest fix first, in how to avoid getting blocked while scraping.

How to bypass Cloudflare when scraping?

First find out which Cloudflare wall you hit. Each has its own fix:

Why does my scraper get a 403 error?

403 means the site refused you. Usually it spotted a bot: a default user agent, a data-center IP, or a handshake that doesn’t look like a browser. Step-by-step fix: 403 Forbidden.

What does 429 Too Many Requests mean?

You asked too often, too fast. Wait, then go slower. If the reply has a Retry-After header, wait that long. More in 429 Too Many Requests.

How many requests per second is OK when scraping?

There’s no official number. Start slow, about one page every 1 to 2 seconds, like our test run. Speed up only while you get no 429s and no slower answers.

How do I solve CAPTCHAs when scraping?

Treat a CAPTCHA as a warning sign: fix your speed, headers and IP first. If you still get them, CAPTCHA solvers do it through an API. See CAPTCHA solvers, or look up your exact one: reCAPTCHA v2, reCAPTCHA v3, hCaptcha, Arkose Labs MatchKey, DataDome.

“Blocked” is a decision a site makes from signals, not one switch.

On Cloudflare, that decision starts with the bot score. Scores from 30 to 99 count as likely human. Lower scores lean bot. A separate group, verified bots, covers known good automation like search engines. The site owner then sets what happens at each score: allow, challenge or block.

So the fix depends on the signal. Going slower fixes speed, not a bad fingerprint. A new IP fixes an IP ban, not a default user agent. That’s why the order matters: free fixes first (speed, headers, cookies), then paid ones (proxies, unblocker APIs) only for the signal that’s left.

A Retry-After header on a 429 is the one time the site tells you exactly what it wants. Obey it.

Can sites detect scraping?

Can web scraping be detected?

Yes, and big sites do it all the time. Cloudflare gives every request a bot score from 1 to 99. A 1 means Cloudflare is “quite certain” it’s a bot, a 99 that it’s a human. The site then lets you in, tests you or blocks you.

How do sites know I’m using Selenium or Playwright?

One tell is built into the browser. When automation runs it, navigator.webdriver is set to true. MDN lists the triggers in Chrome, such as the --enable-automation or --headless flag. Scripts on the page can read it. More tells are in the blocking guide.

Does Cloudflare block AI scrapers?

More and more, by default. Since 1 Jul 2025, every new domain on Cloudflare starts with AI crawlers blocked unless the owner allows them.

From 15 Sep 2026, Cloudflare blocks Training and Agent bots by default on pages that show ads, for new domains. Search bots stay allowed.

Can a website tell if ChatGPT is visiting?

Yes. OpenAI says sites can block its cloud browser, and it gives site owners allowlisting instructions to let it in. So the site can see it, and decide.

Detection works on two levels.

On the request. Before any page loads, the site sees your IP, your headers and how your connection is set up. Cloudflare’s score mixes these with what it has seen across billions of requests a day.

In the browser. Once a page loads, its scripts can look around. navigator.webdriver is the plainest tell. In Chrome it turns true with --enable-automation, --headless, or --remote-debugging-port set to port 0.

AI bots now get their own rules. From 15 Sep 2026, Cloudflare also judges multi-purpose crawlers by everything they do. Googlebot, Applebot and BingBot will be blocked by sites that chose to block Training bots. Cloudflare’s reason for ad pages: an ad means the owner wants a person to see that page.

Do I need a proxy?

Do I need a proxy for web scraping?

Only if the site blocks your IP or you need to look like you’re in another country. Many small jobs work fine without one. Our decision rule is in does this site need proxies? below.

What is a residential proxy?

An IP address borrowed from someone’s home internet, rented to you by a provider. Sites trust those more than data-center IPs. Four kinds, with prices, in residential vs datacenter proxies.

Residential vs datacenter proxies: which one?

Try datacenter first: cheaper and faster, but the first to get blocked. Move to residential when datacenter IPs fail. Residential vs datacenter proxies has the full pick.

Are free proxies worth it?

Free public proxy lists are mostly dead, slow and sometimes hostile. Free trials from paid providers are the better free start. Both are covered in free proxy for web scraping.

What are rotating proxies?

Proxies that give you a new IP on every request or every few minutes. Use rotating for many separate pages, sticky (same IP for a while) for logins and multi-step flows. More in rotating proxies.

What is the best proxy for scraping?

The cheapest type that works on your site. Compare providers in residential proxies, and check where their IPs come from before you pay (residential proxy takedowns).

A proxy is a middle server. Your scraper sends the request to it, it sends the request on, and the site sees the proxy’s IP, not yours.

What you buy is really the IP’s reputation:

  • Datacenter IPs belong to hosting companies. Cheap, fast, easy to spot.
  • Residential IPs belong to home connections. They cost more because each one is a real person’s line.
  • Rotating gives you a new IP per request or every few minutes. Sticky keeps one IP for a session.

Where residential IPs come from is the part buyers skip. Many come from an SDK, a piece of code inside an app that shares the phone or TV’s connection. A pool can vanish overnight, with your scraper on it: NetNut did in July 2026 (residential proxy takedowns).

How much does web scraping cost?

In our math, from $0 to about $16 per 1,000 pages, depending on how hard the site is. Real numbers are in what does 1,000 pages really cost? below.

Does web scraping cost money?

Not for small jobs. Python, the libraries and your own computer are free. You start paying when a site blocks you and you need proxies, a scraping API or servers.

How much does a residential proxy cost per GB?

Decodo, as one example, charges $4 per GB pay-as-you-go, and $3.50 per GB on its 10 GB plan ($35 a month, checked 2026-11-17). Bigger plans cost less per GB. More vendors in residential vs datacenter proxies and residential proxies, or type your GB into the residential proxy price calculator.

Vendors bill in three units, and that’s what makes prices hard to compare.

  • Per GB (proxies): you pay for data moved. Decodo runs from $3.75/GB on 3 GB to $2.75/GB on 100 GB, then $2.50 at 250 GB and $2 at 1 TB. Pay-as-you-go is $4.
  • Per request (unblocker APIs): you pay per page fetched. Bright Data’s Web Unlocker is $1.50 per 1,000 pay-as-you-go, or $499 a month for 383,000 requests.
  • Per credit: one request can cost several credits, depending on the options you switch on.

Zyte also prices by site difficulty, in five tiers from Simple to Advanced. A monthly commitment lowers it: at $100 a month, browser pages cost $0.75 to $12 per 1,000.

To compare all of them for your own volume, type it into the residential proxy price calculator or the scraper API cost calculator. Prices as of 2026-11-17.

How do I scrape Amazon, LinkedIn, Google Maps, Reddit, Instagram, Zillow or X?

All six say no to bots in their terms. Here is what each one says, in its own words. The method is the same as any site; the risk is not.

How to scrape Amazon?

Amazon’s Conditions of Use say your licence does not include “any use of data mining, robots, or similar data gathering and extraction tools.” If you go ahead anyway, a scraper API handles the blocks for you. Amazon is also working on the opposite: its plan to own the world’s product data while it keeps AI shopping agents out.

How to scrape LinkedIn?

LinkedIn’s User Agreement (section 8.2) bans software, scripts or crawlers that “scrape or copy the Services, including profiles.” LinkedIn is also the company that fought hiQ in court. Scraping while logged in is the riskiest version, because you signed that agreement.

How to scrape Google Maps (for free)?

Google’s Maps Platform terms, for its paid Maps API, say customers will not “export, extract, or otherwise scrape Google Maps Content” for use outside Google’s services. Lead lists from Maps are a big reason people ask. Check those terms before you build a product on it.

How to scrape Reddit?

Use the official Data API if your use fits it. Reddit’s Data API Terms require express written approval for commercial use, or for research above the rate limits.

How to scrape Instagram?

Instagram’s Terms of Use ban “accessing or collecting information in an automated way” without its express permission, logged in or not. Profiles are about people, so in the EU the GDPR applies too.

How to scrape Zillow?

Zillow’s Terms of Use ban automated queries, “including screen and database scraping, spiders, robots, crawlers, bypassing ‘captcha’”. They allow copying information without automated processes, for personal use.

How to scrape Twitter (X)?

X’s Terms of Service say you cannot scrape the Services without X’s express written permission, or try to work around the technical limits X sets.

The allowed route is the X API. It is pay-per-use with no subscription: $0.005 per post read and $0.010 per user profile read. That’s $5 per 1,000 posts.

Terms of use are a contract between you and the site. Breaking them can get your account banned, your IPs blocked, or you sued for breach of contract.

Logging in makes that contract clear: you clicked “I agree”. That’s why scraping behind a login is the riskiest version on every one of these sites.

Two details people miss. Google’s “No Scraping” clause sits in the Maps Platform terms, which bind customers of Google’s paid Maps API. And Reddit asks for approval not only for commercial use, but also for research above its rate limits.

Advice: if a site sells an API with the data you need, price it before you build a scraper against its terms.

Is web scraping still worth it with AI?

Is web scraping dead?

No. AI made it bigger. Every AI assistant that “reads a page” is scraping it, from ChatGPT’s cloud browser to Claude’s web fetch tool. What changed is the pushback: Cloudflare now blocks AI bots by default on new domains.

Will AI replace web scraping?

AI replaces the hard part, writing the code, not the scraping. Someone still has to fetch the pages, get past blocks and pay for it. AI also gave scrapers a new way to pull data out: ask a model instead of writing rules.

Is web scraping still relevant in 2026?

Yes. AI models and agents need fresh web data, and the fight over who may take it is louder than ever.

Is it worth learning web scraping in 2026?

Learn the basics: how a page loads, what status codes mean, why sites block you. Your AI can write the code, but you need to know why it stopped working.

The fight moved from “can you get the page” to “who gets paid for it”.

When Cloudflare switched to blocking AI crawlers by default in July 2025, it also launched Pay Per Crawl in beta: a way for site owners to charge AI crawlers for access. A year later it split AI bots into Training, Agent and Search, each with its own default.

For anyone building with web data, that has two sides. More pages will say no, or ask for money, to anything that looks like an AI bot. And AI tools need web data more than ever, which keeps scraping skills and scraping tools in demand.

The new skill is knowing which kind of bot you are, and what the site allows for that kind.

Questions nobody answers well

These come up again and again on Reddit and Hacker News, and the answers out there are vague or sold by a vendor. Here are ours.

Does this site need proxies?

Test before you buy. Here’s the rule we use:

  1. Send 20 requests from your own IP, one every 1 to 2 seconds, with real browser headers.
  2. All 20 come back with your data? You don’t need a proxy.
  3. You get 429? You’re too fast. Slow down. A proxy only hides the problem.
  4. You get 403 or a challenge page on the very first request? The site dislikes your client, not your IP. Fix headers or the handshake first (blocking guide).
  5. It works for a while, then everything from your IP fails, even slow? That’s an IP block. Now buy a proxy: datacenter first, residential if datacenter IPs fail too.
  6. You need prices or results from another country? You need a proxy in that country, blocked or not.

What does 1,000 pages really cost?

Our math from vendor prices, checked 2026-11-17. This is arithmetic, not a test run. Proxies bill per GB, so we used the 2025 Web Almanac: the median mobile home page is 2,559 KB, of which the HTML is 22 KB.

how you scrape cost per 1,000 pages how we got it
your own scraper, no proxy $0 free libraries, your computer
own scraper + residential proxy, HTML only about $0.08 22 MB at Decodo’s $3.50/GB (pricing)
own browser + residential proxy, full page about $8.96 2.56 GB at $3.50/GB
Zyte API, plain HTML $0.13 to $1.27 pay-as-you-go, by how hard the site is (pricing)
Zyte API, browser rendered $1.01 to $16.08 same, with a browser (pricing)
Bright Data Web Unlocker $1.50 pay-as-you-go (pricing)

Two things move the bill most. A browser downloads images, fonts and scripts, so it can use over 100 times the data of HTML only (2,559 KB vs 22 KB). And hard sites cost more per request on APIs that price by difficulty.

LLM or selectors: which costs less over time?

Selectors (rules like “the price is in the element with class price”) cost nothing per page, but break when the site changes its layout. An LLM reads any layout, but you pay on every page, every run.

Firecrawl’s price list shows the gap: a basic scrape is 1 credit per page, and asking for JSON (structured fields) adds 4 more. That’s 5 times the cost per page to get fields instead of the raw page.

Our rule:

  • Same site, every day: selectors. Let your AI write them, and have the scraper warn you when a field comes back empty.
  • Many different sites, once each: the LLM.
  • Both: selectors first, the LLM only for pages where they return nothing.

How to run the proxy test, and redo the cost math for your own site.

The 20-request test. Pick 20 real URLs you plan to scrape, not the home page 20 times. Log the status code, the response size and a key field for each. A 200 with a tiny page, or with your field missing, is a hidden block. Count it as a fail.

The cost formula. pages × page size in KB ÷ 1,000,000 × price per GB = dollars. For 1,000 HTML pages at 22 KB and $3.50/GB: 1,000 × 22 ÷ 1,000,000 × 3.50 ≈ $0.08. Weigh one of your own pages in the Network tab for a real figure.

The selector fallback. Have the scraper count empty fields per run. If more than a few come back empty, send just those pages to the LLM, and fix the selectors.

Updated monthly from what people search; last update 2026-11-17.

The prompt to give your AI

Paste this into ChatGPT, Claude or Cursor before you start a scraping project.

I want to scrape a website. Before you write any code, read these two pages:
https://scrapenews.com/llms.txt
https://scrapenews.com/guides/what-is-web-scraping.md

Then ask me:
1. Which site, and which fields do I want (for example: name, price, link)?
2. How many pages, and how often (once, daily, weekly)?
3. Will I sell or publish the data, and does it include people's names, emails or photos?

Then:
- Tell me if the site has an official API I should use instead.
- Quote what the site's terms and robots.txt say about bots, in one short line each.
- Write a Python scraper with Requests and Beautiful Soup (or Playwright if the page needs JavaScript).
- Wait 1 to 2 seconds between pages. Stop and print the status code on any 403 or 429.
- Save results to results.csv and results.json.
- Tell me exactly how to install and run it on my computer.

Why the prompt asks what it asks.

  • The two links give your AI this page as plain Markdown, so it works from the same answers you just read.
  • The three questions decide the build. Ten pages once and a million pages daily are different scrapers. Names, emails or photos bring in privacy law.
  • Official API first, because an API breaks less and is often allowed where scraping isn’t.
  • Terms and robots.txt in one line each, so you decide with the facts in front of you.
  • The 1 to 2 second pause and the stop on 403 or 429 keep you from getting your IP banned on the first run.

If your AI skips a step, paste the line again.

Tools for this

ToolPrice
Apify: Platform to run, schedule and store scrapers (Actors), with a store of ready scrapers for popular sites. Free plan with $5 a month.from $19
Beautiful Soup: Python library for pulling data out of HTML and XML pages. Parses messy markup and lets you search the tree.Free
Bright Data Web Unlocker: Unblocking API from Bright Data: you send a URL, it handles proxies, retries and CAPTCHAs. Billed per 1,000 requests.$1.50/1k req
Crawl4AI: Open-source Python crawler that outputs LLM-ready Markdown and structured data; also offered as a hosted API.$0.10/1k req
Decodo Residential Proxies: Rotating residential proxies from Decodo (formerly Smartproxy), billed per GB with pay as you go or monthly plans.$4.00/GB
Firecrawl: Turns websites into Markdown or structured data for AI: scrape, crawl, search, plus Alexandria data tools agents can run. Open source (AGPL) plus a hosted API.$3.80/1k req
Jina Reader: Converts any URL to LLM-friendly text by adding a prefix (r.jina.ai). Open-source code plus a hosted API.Free
Playwright: Microsoft's framework to drive Chromium, Firefox and WebKit from code with one API. Made for testing; also used to scrape.Free
Puppeteer: JavaScript library to control Chrome and Firefox from code.Free
Requests: The classic simple HTTP library for Python.Free
ScrapeGraphAI: Python library that builds scraping pipelines with LLMs from a prompt; also a hosted API with credits.$5.00/1k req
Scrapy: Python framework for crawling sites and extracting data: request queue, retries, pipelines, exports. Large plugin ecosystem.Free
Selenium: Long-standing browser automation framework built on WebDriver, with bindings for many languages.Free
Zyte API: Zyte's scraping API: prices each site by difficulty tier, with or without browser rendering. Pay as you go or monthly commitment.$0.13/1k req

Sources

  1. OpenAI Help: Using cloud browser in ChatGPT help.openai.com
  2. OpenAI Help: ChatGPT agent (no longer available) help.openai.com
  3. OpenAI Help: Using the built-in browser in the ChatGPT desktop app help.openai.com
  4. Claude Platform Docs: Web fetch tool platform.claude.com
  5. Playwright docs: Installation playwright.dev
  6. Playwright for Python docs: Installation playwright.dev
  7. Puppeteer docs: What is Puppeteer? pptr.dev
  8. Scrapy docs: Scrapy at a glance docs.scrapy.org
  9. Beautiful Soup docs crummy.com
  10. Selenium docs: The Selenium Browser Automation Project selenium.dev
  11. Cloudflare docs: Bot scores developers.cloudflare.com
  12. MDN: Navigator.webdriver developer.mozilla.org
  13. Cloudflare press release: AI crawlers blocked by default (1 Jul 2025) cloudflare.com
  14. Cloudflare blog: Your site, your rules, new AI traffic options (1 Jul 2026) blog.cloudflare.com
  15. LinkedIn: User Agreement, section 8.2 linkedin.com
  16. Amazon: Conditions of Use amazon.com
  17. Instagram: Terms of Use help.instagram.com
  18. Reddit: Data API Terms redditinc.com
  19. Google Maps Platform: Terms of Service cloud.google.com
  20. Zillow: Terms of Use zillow.com
  21. X: Terms of Service x.com
  22. X Developer Platform: X API pay-per-usage pricing and credits docs.x.com
  23. HTTP Archive Web Almanac 2025: Page Weight almanac.httparchive.org
  24. Decodo: Residential proxy pricing decodo.com
  25. Bright Data: Web Unlocker pricing brightdata.com
  26. Zyte: API pricing zyte.com
  27. Firecrawl: Pricing firecrawl.dev