DEV Community

IndexSentinel
IndexSentinel

Posted on

Why We Replaced Headless Chrome With Pure HTTP for 4 B2B Data Pipelines (and Cut Compute 10x)

Most web data pipelines still launch headless Chromium by default — burning 2–4 GB RAM per container, paying cold-start penalties, and triggering TLS/browser-fingerprinting blocks even when the underlying data is already sitting in the initial HTML or RSS payload.

While building a lightweight portfolio of B2B intelligence extractors on Apify (PAY_PER_EVENT, capped at 512 MB RAM per container), we tested every target endpoint directly with httpx from datacenter IPs. Four out of five production pipelines needed zero browser.

Here is what worked in production, what failed from cloud IPs, and the exact parsing patterns.


1. Chrome Web Store: Full Extension Metadata + manifest.json Permissions Live in SSR HTML

On chromewebstore.google.com, you do not need Playwright or DOM rendering to collect install counts, ratings, developer contact emails, or Chrome permissions.

  • Two caveats from EU/datacenter servers:
    1. Requests without Google's consent cookie get redirected to consent.google.com. Passing SOCS=CAESHAgBEhJnd3NfMjAyMzA4MTAtMF9SQzIaAmVuIAEaBgiAo_CmBg returns the full SSR page directly (HTTP 200).
    2. Detail pages embed structured JSON inside AF_initDataCallback({key: 'ds:0', ... data:[...]}).
  • Parser tip: Avoid non-greedy regex over ], sideChannel — extension descriptions frequently contain literal ] or JavaScript-like text. Match up to data: and use Python's json.JSONDecoder().raw_decode(html, idx) for exact bracket-balanced parsing. Inside arr[0][18], Google often embeds the raw manifest.json string (manifest_version, permissions, host_permissions), and arr[10] carries developer email, address, and trader name.

Try it directly on Apify: Chrome Web Store Extensions & Developer Leads Scraper ($0.003 / extension)


2. Substack: /api/v1/archive Hits Cloudflare 403 on AWS IPs — /feed RSS Returns 200 OK

If you run a pure-HTTP scraper from a home residential IP, {publication}/api/v1/archive?sort=new&limit=20 returns crisp JSON. Move that exact code to Apify Cloud or an AWS/Hetzner datacenter IP and substack.com/api/v1/publication/search (and sometimes /api/v1/archive) returns HTTP 403 Cloudflare challenge pages.

Our production fix:

  1. Keep /api/v1/archive as primary when unblocked (or when the user supplies proxyConfiguration).
  2. Automatically fall back to {publication}/feed (standard RSS 2.0 XML with content:encoded and dc:creator) whenever archive JSON is empty or blocked.
    • Across real tests from Apify Cloud (newsletter.pragmaticengineer.com/feed and www.lennysnewsletter.com/feed), RSS returned clean HTTP 200 XML in milliseconds with real newsletter titles, authors, canonical post URLs, publication dates, and full word counts (0 browser overhead, 0 proxy cost).

Try it directly on Apify: Substack Newsletter & Archive Posts Scraper ($0.002 / publication + $0.001 / post)


3. Shopify App Store: Watch Out for Pipe-Separated Review Tokens

Shopify App Store listing pages and ?page=N review pagination work cleanly over standard HTTP HTML — no browser needed.

The subtle bug we caught on live merchant reviews: Shopify renders reviewer metadata in mixed-order lines such as:

New Zealand | About 1 year using the app or Australia | 19 days using the app

Splitting naively by fixed index shifts country names into merchantName whenever days using the app or optional tenure fields vary. Anchor explicitly with a strict regex (/using the app\s*$/i) per segment rather than across the full line, and fall back to order-independent token classification.

Try it directly on Apify: Shopify App Store & Reviews Scraper ($0.004 / app + $0.001 / review)


4. European B2B Entity Extraction (Impressum, P.IVA, UID, PEC, HRB)

EU corporate sites (especially DACH .de/.at/.ch and Italian .it) expose rich legal entity data on /impressum, /contatti, /note-legali, or footer links — VAT numbers (DE..., IT..., ATU..., CHE-...), German HRB/HRA court registry IDs, and Italian certified email (PEC).

Fetching just the homepage + discovered legal paths concurrently over httpx with strict SSRF IP/CIDR filtering handles bulk lead enrichment in <512 MB RAM at fractions of a cent per domain.

Try it directly on Apify: EU Impressum, VAT (P.IVA/UID), PEC & B2B Contact Extractor ($0.0025 / domain)


5. When You Actually Need Headless Chromium

The fifth case — detecting JavaScript/hydration SEO regressions (noindex tags injected client-side, canonical tags overwritten by React/Next/Nuxt, missing SSR body content, Open Shadow DOM text) — is where Chromium genuinely pays for itself. Comparing raw SSR HTML against rendered DOM catches silent indexing bugs that curl and standard SEO crawlers miss completely.

Try it directly on Apify: Bulk Broken Link, Sitemap, Canonical & JS SEO Checker ($0.003 / URL)


Takeaway

Before reaching for Playwright or Puppeteer in any scraping or data enrichment pipeline:

  1. Check curl / httpx from a real datacenter IP (not your laptop!).
  2. Inspect embedded SSR JSON state (AF_initDataCallback, __NEXT_DATA__, JSON-LD) and RSS /feed endpoints.
  3. Reserve headless Chromium strictly for cases where client-side JS execution is the feature under test.

Top comments (2)

Collapse
 
indexsentinel profile image
IndexSentinel •

🫣

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

four out of five pipelines needed no browser at all. the data was already sitting in the first html payload.