By Rajesh Kannan, Co-Founder & CTO, Gramosoft · Last updated: · Every cause reproduced on our own test shop, and every fix run against it, on December 2, 2026
Your scraper ran, the server answered 200 OK, and you got back an empty list. Nothing crashed, so nothing alerted you. We built a small test shop that reproduces the eight usual causes of empty scraper data and wrote a script that tells them apart in one request. This guide starts with the GcrawlAI route, then walks through each cause and its fix in Python.
TL;DR
- A 200 isn't proof of data. It only says the server sent something. Check what it sent before you touch your selectors.
- The one test that sorts most cases: search the raw response for a value you can see in your browser, like a price. Found in an element, found in a
<script>, or not found at all point to different causes. - The eight causes: JavaScript rendering, data in a JSON script, a challenge page, a redirect, a selector that no longer matches, an iframe, a compressed body your client can't read, and soft rate limiting.
- Don't want to run browsers and proxies? GcrawlAI renders the page, handles blocks and pacing in one request, and never charges for failed requests.
- Whatever you use, reject a page that doesn't contain your data before it reaches your database.
Why is my scraper returning empty data? Usually the page you received isn't the page you saw in your browser. The data loads later with JavaScript, sits in a JSON script, or was replaced by a challenge, login or region page. Otherwise your selector no longer matches, the value is in an iframe, the body didn't decode, or you're being throttled.
| # | Cause | What you see | Quick test | Fix |
|---|---|---|---|---|
| 1 | Rendered by JavaScript | "Loading...", many scripts, few words | Value missing from raw HTML, present after rendering | Render and wait, or call the page's JSON API |
| 2 | Data in a JSON script | Selector finds nothing, value is in the HTML | Value only inside <script> |
Parse __NEXT_DATA__ or JSON-LD |
| 3 | Challenge or block page | Short page, "Just a moment..." | Challenge words or a cf-mitigated header |
Slow down, change IP type, or use an API |
| 4 | Redirected elsewhere | Login, consent or country page | Final URL or title differs | Fix the URL, cookies, locale or login |
| 5 | Selector doesn't match | HTML looks right, zero matches | Value in raw HTML, outside scripts | Build selectors from the raw HTML |
| 6 | Value inside an iframe | Visible in the browser, not in the page | An <iframe> holds it |
Fetch the iframe's URL |
| 7 | Compressed body you can't read | Garbled text, no <html> |
Content-Encoding: br or zstd |
Install the decoder, or stop copying Accept-Encoding |
| 8 | Soft rate limiting | Works, then pages get thin | Sizes drop as you speed up | Back off with jitter, keep concurrency low |
How to stop empty results with GcrawlAI
Four of the eight causes come from fetching, not parsing: pages that need JavaScript, block pages, compressed bodies and throttling. GcrawlAI handles those in one API request with a stealth browser, residential IPs and stealth escalation, and returns clean Markdown, HTML or JSON. Failed requests are never charged, so retries on a hard page cost nothing.
The call below renders a product page from a US IP and returns Markdown. Then it does the one thing no service can do for you: it checks that the value you need is actually on the page.
# gcrawlai_empty.py
# pip install gcrawl-sdk
"""Let GcrawlAI handle causes 1, 3, 7 and 8 (rendering, blocks, encoding, pacing),
then keep the one check no service can do for you: is your data on the page?"""
import os
from gcrawl_sdk import GcrawlClient, ScrapeOptions
gc = GcrawlClient(api_key=os.getenv("GCRAWL_API_KEY", "gc-YOUR_API_KEY"))
# Self-hosted core: GcrawlClient(api_key=..., base_url="http://localhost:8000")
page = gc.scrape(
url="https://shop.example.com/products/widget-42",
options=ScrapeOptions(markdown_enabled=True, html_enabled=True, proxy_geo="US"),
wait=True,
)
if "49.99" in (page.markdown or ""): # a value you can see in your browser
print(page.markdown[:300])
else:
# Rendered and unblocked, but still no value: a login, a region page or a changed site.
print("page fetched, value missing: check the URL, region or selector")
- Rendering included: JavaScript runs before the page comes back, so app shells arrive with their data.
- Blocks handled: rotating residential proxies and handling for Cloudflare, DataDome, Akamai and PerimeterX are part of every request, with no credit multipliers.
- One request per page: rendering, proxies and internal retries never multiply it, and blocked pages, CAPTCHAs, timeouts and server errors aren't billed.
- How you connect: the managed Cloud API, the Python SDK, an MCP server for AI agents, the Playground and docs. The MIT-licensed core is self-hostable.
- Pricing: a free plan of 50 requests a month with no card, and paid plans from $0.67 to $9.67 per 1,000 requests. See GcrawlAI pricing.
Where it falls short: GcrawlAI can't fix the other four causes for you. If your URL redirects to a login, your selector is out of date, or the data is in a JSON script you ignore, you'll get a clean page without your values. It also has no prompt-driven browsing agent, and self-hosting means bringing your own proxy accounts.
"An empty list is the most expensive bug in scraping, because it looks like success. Nobody gets paged, and three weeks later someone asks why the dashboard went flat. Check for your data, not for a 200."
Rajesh Kannan, Co-Founder & CTO at Gramosoft
Diagnose the cause in one request
Don't change selectors, headers or proxies until you know which cause you have. The script below fetches the page once, records what came back and where your value is, and prints a verdict. Give it a value you can see in your browser and the selector your scraper uses. Add --render to compare against a real browser.
# diagnose_empty.py
# pip install requests beautifulsoup4 playwright && playwright install chromium
"""Why did my scraper get a 200 and no data? One request, one verdict.
Usage: python diagnose_empty.py URL --expect "49.99" --selector ".price" [--render] [--repeat 8]
--expect a value you can see on the page in your browser (a price, a SKU, a name)
--selector the CSS selector your scraper uses
--render also load the page in Chromium (needed to confirm JavaScript and iframe causes)
--repeat fetch N times in a row to spot throttling
"""
import argparse, json, re, sys, time
import requests
from bs4 import BeautifulSoup
CHALLENGE = ("just a moment", "verify you are human", "cdn-cgi/challenge-platform", "captcha",
"access denied", "datadome", "_px", "attention required")
LOGIN_WORDS = ("sign in", "log in", "login", "consent", "cookie", "choose your country", "select your region")
def fetch(url, headers=None):
r = requests.get(url, headers=headers or {}, timeout=30)
text = r.text
# many replacement characters, or no "<" at all, means the bytes didn't decode as HTML
garbled = text.count("\ufffd") > 20 or (len(r.content) > 0 and "<" not in text[:2000])
soup = BeautifulSoup(text, "html.parser") if not garbled else None
title = soup.title.get_text(strip=True) if soup and soup.title else ""
return r, text, soup, title, garbled
def evidence(url, expect, selector, headers=None):
r, text, soup, title, garbled = fetch(url, headers)
visible = re.sub(r"<script.*?</script>|<style.*?</style>|<[^>]+>", " ", text, flags=re.S | re.I)
in_scripts = soup and any(expect in (s.string or "") for s in soup.find_all("script"))
return {
"status": r.status_code,
"final_url": r.url,
"redirects": [h.status_code for h in r.history],
"content_type": r.headers.get("Content-Type", ""),
"content_encoding": r.headers.get("Content-Encoding", ""),
"bytes": len(r.content),
"title": title,
"garbled": garbled,
"script_tags": text.lower().count("<script"),
"visible_words": len(visible.split()),
"iframes": len(soup.find_all("iframe")) if soup else 0,
"challenge_marker": next((m for m in CHALLENGE if m in text.lower()), None) or r.headers.get("cf-mitigated"),
"expect_in_raw": expect in text,
"expect_in_script": bool(in_scripts),
"selector_matches": len(soup.select(selector)) if soup else 0,
}
def rendered(url, expect, selector):
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
b = p.chromium.launch()
page = b.new_page()
page.goto(url, wait_until="networkidle")
out = {"rendered_matches": page.locator(selector).count(),
"expect_in_dom": expect in page.content(),
"expect_in_frame": any(expect in f.content() for f in page.frames[1:])}
b.close()
return out
def verdict(e, ren):
if e["garbled"]:
return "7 compressed or mis-decoded body", f"Content-Encoding is '{e['content_encoding']}': install brotli/zstandard or stop copying Accept-Encoding"
if e["challenge_marker"]:
return "3 block or challenge page", f"marker '{e['challenge_marker']}': slow down, change IP type, or use a scraping API"
if e["redirects"] or any(w in e["title"].lower() for w in LOGIN_WORDS):
return "4 redirected to another page", f"ended on {e['final_url']} ('{e['title']}'): fix the URL, cookies, locale or login"
if e["selector_matches"]:
return "ok", f"{e['selector_matches']} matches: the fetch and selector both work"
if e["expect_in_script"]:
return "2 data inside a <script> JSON blob", "parse the JSON (__NEXT_DATA__, JSON-LD) instead of the HTML"
if e["expect_in_raw"]:
return "5 selector does not match the HTML you got", "rebuild the selector from the raw HTML, not DevTools"
if ren and ren["expect_in_frame"]:
return "6 value inside an iframe", "fetch the iframe's src URL, or use page.frame_locator()"
if ren and ren["expect_in_dom"]:
return "1 rendered by JavaScript", "render and wait for the selector, or call the JSON endpoint the page uses"
if e["iframes"]:
return "6? value may be inside an iframe", "run again with --render to confirm"
if e["script_tags"] > 3 and e["visible_words"] < 50:
return "1? looks like a JavaScript app shell", "run again with --render to confirm"
if e["bytes"] < 1500:
return "8? thin page: throttling, or a genuinely empty result", "run with --repeat and compare sizes over time"
return "unknown", "save raw.html, open it with JavaScript off, and look"
if __name__ == "__main__":
ap = argparse.ArgumentParser()
ap.add_argument("url"); ap.add_argument("--expect", required=True); ap.add_argument("--selector", required=True)
ap.add_argument("--render", action="store_true"); ap.add_argument("--repeat", type=int, default=0)
ap.add_argument("--header", action="append", default=[], help='e.g. --header "Accept-Encoding: gzip, deflate, br"')
a = ap.parse_args()
hdrs = dict(h.split(": ", 1) for h in a.header)
if a.repeat:
for i in range(a.repeat):
r = requests.get(a.url, headers=hdrs, timeout=30)
print(f"{i + 1:>2} status {r.status_code} bytes {len(r.content):>5} has_value {a.expect in r.text}")
time.sleep(0.2)
e = evidence(a.url, a.expect, a.selector, hdrs)
ren = rendered(a.url, a.expect, a.selector) if a.render else None
cause, fix = verdict(e, ren)
print(json.dumps({**e, **(ren or {})}, indent=1))
print(f"VERDICT: {cause}\nFIX: {fix}")
sys.exit(0 if cause == "ok" else 1)
We built a local test shop where every product page shows the same price, $49.99, in a browser, then broke it eight different ways. Here is the script run against each page. This is our own test site, so it shows how the triage works, not how any particular website behaves.
# run_output.txt (printed output)
## /ok a normal page
VERDICT: ok
FIX: 1 matches: the fetch and selector both work
## /c1 React-style app shell
VERDICT: 1 rendered by JavaScript
FIX: render and wait for the selector, or call the JSON endpoint the page uses
## /c2 Next.js hydration data
VERDICT: 2 data inside a <script> JSON blob
FIX: parse the JSON (__NEXT_DATA__, JSON-LD) instead of the HTML
## /c3 challenge page with 200
VERDICT: 3 block or challenge page
FIX: marker 'just a moment': slow down, change IP type, or use a scraping API
## /c4 redirect to login
VERDICT: 4 redirected to another page
FIX: ended on http://127.0.0.1:8970/login?next=/c4 ('Sign in | Lab Shop'): fix the URL, cookies, locale or login
## /c5 class names changed
VERDICT: 5 selector does not match the HTML you got
FIX: rebuild the selector from the raw HTML, not DevTools
## /c5b selector copied from DevTools
VERDICT: 5 selector does not match the HTML you got
FIX: rebuild the selector from the raw HTML, not DevTools
## /c6 price inside an iframe
VERDICT: 6 value inside an iframe
FIX: fetch the iframe's src URL, or use page.frame_locator()
## /c7 copied browser headers
VERDICT: 7 compressed or mis-decoded body
FIX: Content-Encoding is 'br': install brotli/zstandard or stop copying Accept-Encoding
## /c8 eight fast requests
1 status 200 bytes 204 has_value True
2 status 200 bytes 204 has_value True
3 status 200 bytes 204 has_value True
4 status 200 bytes 204 has_value True
5 status 200 bytes 204 has_value True
6 status 200 bytes 111 has_value False
7 status 200 bytes 111 has_value False
8 status 200 bytes 111 has_value False
VERDICT: 8? thin page: throttling, or a genuinely empty result
FIX: run with --repeat and compare sizes over time
Read the checks in order. The first one that fails usually names the cause, and fixing a later stage while an earlier one is still broken just adds noise. If you'd rather look by eye, save the raw response to a file and open it in a browser with JavaScript turned off: you'll see exactly what your parser saw.
The 8 causes of empty scraper data, and the fix for each
Each cause below has the symptom you'll notice, the test that confirms it and the fix. They're ordered roughly by how often they come up. Several can stack: a JavaScript storefront can also redirect by country, and rendering it from a flagged IP adds a challenge page on top, so re-run the diagnosis after each fix.
1. The data is rendered by JavaScript
The server sends an app shell, often just <div id="root">, a "Loading..." message and a stack of script tags. The browser then fetches the data and builds the page. requests doesn't run JavaScript, so it only ever sees the shell. In our test, the raw response didn't contain the price, and Chromium found it after rendering.
Fix: render the page and wait for the element you need, not a fixed sleep. Better still, open DevTools, go to Network, filter by Fetch/XHR and call the JSON endpoint the page uses. It's faster, lighter and less likely to change than the HTML. Our guides to scraping dynamic JavaScript websites and hidden API scraping go deeper.
# fix_js.py
"""Cause 1: the data is added by JavaScript. Two fixes: render and wait, or call the JSON the page calls."""
import os
import requests
from playwright.sync_api import sync_playwright
BASE = os.getenv("BASE", "http://127.0.0.1:8970")
# Fix A: render, then wait for the element you need (not a fixed sleep)
with sync_playwright() as p:
browser = p.chromium.launch()
page = browser.new_page()
page.goto(f"{BASE}/c1")
page.wait_for_selector(".price", timeout=10_000)
print("rendered:", page.locator(".price").inner_text())
browser.close()
# Fix B: skip the browser. DevTools > Network > Fetch/XHR shows the call the page makes.
print("api:", requests.get(f"{BASE}/api/product/42", timeout=20).json()["price"])
2. The data is in a JSON script, not in an element
Frameworks like Next.js and Nuxt send the page's data as JSON inside a <script> tag and build the HTML from it in the browser. The value is in the raw response, so the search for your price succeeds, but your CSS selector finds nothing because there's no element yet. This is the cheapest cause to fix: no browser needed.
Fix: parse the JSON. Look for <script id="__NEXT_DATA__">, window.__NUXT__, or application/ld+json blocks, which many shops publish for search engines. Newer Next.js apps built with the App Router stream data in self.__next_f.push(...) calls instead, which are harder to parse; calling the page's API is often easier there.
# fix_hydration.py
"""Cause 2: the value is in the raw HTML, but inside a <script> JSON blob, not an element."""
import json, os
import requests
from bs4 import BeautifulSoup
BASE = os.getenv("BASE", "http://127.0.0.1:8970")
soup = BeautifulSoup(requests.get(f"{BASE}/c2", timeout=20).text, "html.parser")
blob = soup.find("script", id="__NEXT_DATA__") # Next.js; Nuxt uses window.__NUXT__
product = json.loads(blob.string)["props"]["pageProps"]["product"]
print(product["name"], product["price"])
# Same idea for structured data many shops publish for search engines:
for tag in soup.find_all("script", type="application/ld+json"):
print(json.loads(tag.string))
3. You got a challenge or block page with a 200
Bot protection doesn't always send a 403. It often returns 200 OK with a short page saying "Just a moment..." or "Verify you are human", sometimes with a header such as cf-mitigated: challenge. The body is small, the title is wrong, and none of your data is there.
Fix: slow down first, then look at your IP. Datacenter IPs are flagged far more often than residential ones. A real browser with a believable fingerprint helps, and our guide on how websites detect scrapers lists what gets checked. If this is the blocker, a scraping API such as GcrawlAI handles it in the request. Scrape only public pages you're allowed to access.
4. You were redirected to a login, consent or country page
The request worked, but it didn't land where you think. A session expired and you got the login page, a cookie wall appeared, or the site sent you to another country's store. requests follows redirects silently, so unless you check response.url and response.history, you'll parse the wrong page.
Fix: log the final URL and page title on every request and reject pages that don't match. Then fix the request: the right URL, a valid session cookie, an Accept-Language header or an exit IP in the right country, and any consent cookie the site expects. Respect logins and terms: if the data needs an account you don't have, it isn't public.
5. Your selector no longer matches the HTML
The page is right and the value is in it, but your selector returns nothing. Two traps cause most of these. Sites change generated class names like ProductCard_price__9fLm1 on every deploy. And selectors copied from DevTools describe the live DOM, not the HTML you downloaded: browsers add a <tbody> to tables, so table > tbody > tr matched zero rows in our raw HTML.
Fix: build selectors from the raw response, not from DevTools. Prefer stable hooks such as data-* attributes, IDs and visible text, and use partial class matches like [class*="price"] for generated names. Log the match count, and treat zero as a failure, not as "no products today".
6. The value is inside an iframe
An iframe is a separate document with its own URL. Price widgets, reviews, maps and embedded forms often live in one. You can see the value in your browser, but it isn't in the page's HTML at all, and even a headless browser won't find it with a normal page selector.
Fix: find the <iframe> in the page, read its src and fetch that URL directly. In Playwright, use page.frame_locator("iframe") to reach inside it. If the iframe comes from a different company's domain, check that you're allowed to collect that content.
7. The body is compressed and your client can't read it
This one surprises people. You copy your browser's headers to look more real, including Accept-Encoding: gzip, deflate, br, zstd. The server happily replies with Brotli. Python's requests can only decode Brotli if the brotli package is installed, so response.text becomes binary noise and every selector matches nothing. In our test, the copied header turned a working page into garbage.
Fix: let requests set Accept-Encoding itself; it only asks for what it can decode. If you need Brotli, pip install brotli. Zstandard decoding is built into Python 3.14, and earlier versions need backports.zstd. Also check the page's charset if text looks wrong rather than missing.
# fix_selectors.py
"""Causes 5, 6 and 7: the selector, an iframe, or the encoding. Each fix is a few lines."""
import os
from urllib.parse import urljoin
import requests
from bs4 import BeautifulSoup
BASE = os.getenv("BASE", "http://127.0.0.1:8970")
get = lambda path, **kw: requests.get(urljoin(BASE, path), timeout=20, **kw)
# 5. Build selectors from the HTML you received. DevTools adds <tbody>; generated class names change.
soup = BeautifulSoup(get("/c5b").text, "html.parser")
print("devtools selector:", len(soup.select("#prices > tbody > tr > td.price")))
print("raw-html selector:", len(soup.select("#prices td.price")))
drift = BeautifulSoup(get("/c5").text, "html.parser")
print("stable attribute: ", drift.select_one('[data-sku="W42"] [class*="price"]').get_text())
# 6. An iframe is a separate document: fetch its src
page = BeautifulSoup(get("/c6").text, "html.parser")
frame = BeautifulSoup(get(page.find("iframe")["src"]).text, "html.parser")
print("iframe:", frame.select_one(".price").get_text())
# 7. Copied browser headers asked for Brotli, which requests can't decode without the brotli package
r = get("/c7", headers={"Accept-Encoding": "gzip, deflate, br, zstd"})
print("copied headers:", r.headers.get("Content-Encoding"), "| starts with '<':", r.text.lstrip().startswith("<"))
r = get("/c7") # let requests set Accept-Encoding itself
print("default headers:", r.headers.get("Content-Encoding"), "|", BeautifulSoup(r.text, "html.parser").select_one(".price").get_text())
8. You're being rate limited quietly
Some sites don't send 429 Too Many Requests. They start returning thin pages, partial lists or empty results once you go too fast. In our test shop, the first five quick requests returned the full page and the next three came back at about half the size without the price. Nothing errored.
Fix: log the response size and timestamp for every request. If pages shrink as speed rises, cut concurrency, space requests out and retry with exponential backoff and jitter, honouring Retry-After when it's sent. Our guide to 429 Too Many Requests covers pacing in detail.
Stop empty data reaching your database
Most empty-data incidents aren't found by the scraper. Someone notices a flat chart weeks later. The fix is an acceptance check that runs before parsing: is this the page I asked for, is it free of challenge text, and does it contain a marker of my data? Reject with a reason instead of returning an empty list.
# accept_page.py
"""Causes 3, 4 and 8, and every silent failure: accept a page only when it is the page you wanted.
Run this check before you parse or store anything."""
import os, random, time
from urllib.parse import urlparse
import requests
BASE = os.getenv("BASE", "http://127.0.0.1:8970")
CHALLENGE = ("just a moment", "verify you are human", "captcha", "access denied")
class Rejected(Exception):
pass
def accept(r, path, must_contain):
"""Raise with a reason instead of returning [] that looks like success."""
body = r.text.lower()
if r.status_code == 429:
raise Rejected(f"rate limited, Retry-After={r.headers.get('Retry-After')}")
if urlparse(r.url).path != path:
raise Rejected(f"redirected to {r.url}") # login, consent, other country
if r.headers.get("cf-mitigated") or any(m in body for m in CHALLENGE):
raise Rejected("challenge page")
if must_contain.lower() not in body:
raise Rejected(f"marker missing, {len(r.content)} bytes") # thin page, throttled or changed
return r.text
def fetch(path, must_contain, tries=5):
for attempt in range(tries):
r = requests.get(BASE + path, timeout=20)
try:
return accept(r, path, must_contain)
except Rejected as e:
if "redirected" in str(e) or "challenge" in str(e):
raise # retrying won't fix these
wait = 2 ** attempt + random.random() # back off, with jitter
print(f" {path}: {e}; retrying in {wait:.1f}s")
time.sleep(wait)
raise Rejected(f"{path}: still empty after {tries} tries")
if __name__ == "__main__":
for _ in range(6): # burn through the lab's soft limit (5 requests per 10 s)
requests.get(BASE + "/c8", timeout=20)
for path in ("/ok", "/c3", "/c4", "/c8"):
try:
fetch(path, must_contain="class=\"price\"") # a marker of the data, not the title
print(f"{path}: accepted")
except Rejected as e:
print(f"{path}: rejected ({e})")
# fixes_output.txt (printed output) ## fix_js.py rendered: $49.99 api: 49.99 ## fix_hydration.py Widget 42 49.99 ## fix_selectors.py devtools selector: 0 raw-html selector: 1 stable attribute: $49.99 iframe: $49.99 copied headers: br | starts with '<': False default headers: None | $49.99 ## accept_page.py /ok: accepted /c3: rejected (challenge page) /c4: rejected (redirected to http://127.0.0.1:8970/login?next=/c4) /c8: marker missing, 111 bytes; retrying in 1.8s /c8: marker missing, 111 bytes; retrying in 2.4s /c8: marker missing, 111 bytes; retrying in 4.2s /c8: marker missing, 111 bytes; retrying in 8.2s /c8: accepted
- Use a data marker, not the title. In our test, the throttled page still had the right title, so a title check would have accepted it.
- Don't retry what retrying can't fix. A redirect, a challenge page or a changed selector will fail the same way every time. Retry only thin or rate-limited responses.
- Keep "zero results" and "failed" separate. A search with no matches is a valid answer. An empty list from a broken page isn't. Give them different states in your logs.
- Watch the missing-field rate. A sudden rise in empty required fields means the site changed. Alert on it, and don't overwrite good stored values with empty ones.
When to stop debugging and use an API
For one stable, server-rendered site, requests and BeautifulSoup are fine, and the acceptance check above keeps them honest. Once you're scraping many sites that render with JavaScript, block datacenter IPs or throttle without warning, you're maintaining browsers, proxies and retry logic instead of using the data. That's the point where an API pays for itself.
| Your situation | Do it yourself | Or hand it off |
|---|---|---|
| A few stable, server-rendered pages | requests, BeautifulSoup and the acceptance check |
GcrawlAI's free plan, if you'd rather not maintain it |
| JavaScript-heavy sites | Playwright with waits, or the site's JSON API | GcrawlAI renders the page in one request |
| Challenge pages and blocks | Residential proxies, a stealth browser and pacing | GcrawlAI with stealth escalation; failed requests are free |
| Many sites that change often | Per-site selectors, fixtures and alerts | GcrawlAI Markdown into your LLM, plus your own field checks |
| Logged-in or multi-step flows | Playwright with a stored session | Still yours: GcrawlAI fetches pages, it doesn't drive your account |
For other failures, see common web scraping errors, our fix for 403 Forbidden in Python requests and Cloudflare error 1020.
Frequently asked questions
Why does my scraper return 200 but no data?
A 200 only means the server sent a response, not that it's the page you wanted. The data may load later with JavaScript, sit in a JSON script, or be replaced by a challenge, login or region page. Search the raw response for a value you can see in your browser, and check the final URL and title.
How do I know if a page needs JavaScript rendering?
Save the raw response and search it for a value you can see on screen, such as a price. If it's missing, but the page has many script tags, few words and a "Loading" message, it's rendered by JavaScript. Confirm by loading it in Playwright and searching again, or by finding the JSON request in DevTools.
Why does my selector work in DevTools but not in my scraper?
DevTools shows the live page after JavaScript ran and after the browser repaired the HTML, for example by adding a tbody to tables. Your scraper sees the raw download. Build selectors from the saved response instead, prefer stable attributes over generated class names, and log how many elements each selector matched.
Can a block page return a 200 status code?
Yes. Many bot-protection systems return 200 with a challenge page saying "Just a moment" or "Verify you are human" instead of a 403. The page is short, the title is wrong and your data is missing. Check for those words and for headers such as cf-mitigated before you parse anything.
Why is response.text garbled in Python requests?
Usually because you copied browser headers that ask for Brotli or Zstandard compression, and requests can't decode them without extra packages. The server sends compressed bytes and selectors match nothing. Remove the Accept-Encoding header so requests picks what it supports, or install the brotli package. Wrong charsets cause garbled text too.
Should my scraper retry when it gets empty results?
Only for causes that change on their own, such as throttling or a brief server problem, and then with exponential backoff and jitter. Retrying a redirect to a login page, a challenge page or an outdated selector gets the same empty result every time. Classify the response first, then decide whether a retry can help.
Does GcrawlAI fix empty scraping results, and what does it cost?
It fixes the fetching causes: JavaScript rendering, block pages, compression and pacing, in one request. Selectors, redirects and JSON data are still yours to check. The free plan has 50 requests a month with no card, paid plans cost $0.67 to $9.67 per 1,000 requests, and failed requests are never charged.
Related guides
- How to Scrape Dynamic JavaScript Websites with Python (2026 Guide)
- 429 Too Many Requests: How to Fix It When Web Scraping
- How to Fix 403 Forbidden Errors in Python Requests (2026)
- Cloudflare Error 1020 Access Denied: How to Fix It When Scraping
- How Websites Detect Scrapers: 13 Signals Anti-Bot Systems Check
- Web Scraping Without Getting Blocked: The 2026 Playbook
- Fix 405 Method Not Allowed and 500 Errors in Web Scraping
- Extract structured data from any website
- Best Python HTTP Clients for Scraping: requests vs httpx vs aiohttp
- Playwright vs Puppeteer vs Selenium for Web Scraping (2026)
- How to Check if a Website Allows Scraping (robots.txt Explained)