NEWScrapingAnt MCP for Claude Code, Cursor & Windsurf — try it free →
Skip to main content

Web Scraping Blog — Page 2

Puppeteer Find Elements: Select, Wait and Extract Records

· 14 min read
Oleg Kulyk
Co-Founder @ ScrapingAnt

Puppeteer Find Elements: Select, Wait and Extract Records

Use page.$() to get the first matching element and page.$$() to get all matching elements. When you want data rather than handles, page.$eval() runs a callback on the first match, and page.$$eval() passes all matches to a callback that can return JSON records.

The selector still needs to identify the right records, and the fields must be populated before you read them. This guide demonstrates both problems with a local catalogue: a promotional card that matches an overly broad selector, and product cards that exist before their titles and prices arrive.

From HTML to Embeddings - ML-Based Parsers That Survive Layout Changes

· 16 min read
Oleg Kulyk
Co-Founder @ ScrapingAnt

From HTML to Embeddings: ML-Based Parsers That Survive Layout Changes

Correction (2026-09-14)

An earlier version of this article claimed that ML parsers achieve "F1 improvements of 10–25 percentage points over rule-based baselines under layout changes" and "F1 above 0.9 in field deployments" without identifying a source. We could not trace either number to a published experiment. Sections 4.1 and 5.3 now cite the SWDE few-shot results from Li et al. (ACL 2022) and state what those results do and do not show.

Traditional web scraping pipelines rely heavily on brittle, hand-crafted rules – CSS selectors, XPath queries, and regular expressions – that tend to break as soon as a website’s layout or DOM structure changes. With the rapid evolution of front-end frameworks, A/B testing, and personalized content, these brittle approaches impose high maintenance costs and limit scalability.

Healthcare Market Mapping - Scraping Provider Networks and Formularies

· 15 min read
Oleg Kulyk
Co-Founder @ ScrapingAnt

Healthcare Market Mapping: Scraping Provider Networks and Formularies

Healthcare market mapping increasingly depends on granular, up‑to‑date data on provider networks and drug formularies. Payers, health systems, digital health companies, and analytics firms use these data to understand network adequacy, competitive positioning, product design, and patient access. However, much of this information is not available via clean, official APIs; instead, it resides in heterogeneous, JavaScript-heavy web portals that were built for human browsing, not machine consumption.

LLM-Assisted Robots.txt Reasoning - Dynamic Crawl Policies Per Use Case

· 15 min read
Oleg Kulyk
Co-Founder @ ScrapingAnt

LLM-Assisted Robots.txt Reasoning: Dynamic Crawl Policies Per Use Case

Correction (2026-09-14)

An earlier version of this article stated that the Robots Exclusion Protocol was never standardized as an IETF RFC and that Google's 2019 proposal was withdrawn. That was incorrect: the protocol was published as RFC 9309, an IETF Standards Track document, in September 2022. The "Background" section below has been corrected.

Robots.txt has long been the core mechanism for expressing crawl preferences and constraints on the web. Yet, the file format is intentionally simple and underspecified, while real-world websites exhibit complex, context-dependent expectations around crawling, scraping, and automated interaction. In parallel, large language models (LLMs) and agentic AI workflows are transforming how scraping systems reason about and adapt to such expectations.

Collect Employer Job Postings with Python and ScrapingAnt

· 12 min read
Oleg Kulyk
Co-Founder @ ScrapingAnt

Collect Employer Job Postings with Python and ScrapingAnt

Updated 2026-10-12 — publication approved by Oleg Kulyk

This draft replaces broad labor-market and scraping-provider claims with a bounded job-posting collector, captured fixtures and explicit limits. The original URL, publication date and banner are preserved. Download the reproducibility packet.

A job-posting refresh needs more than a list of titles. It needs stable posting IDs, source URLs, validated fields, and a way to distinguish a complete collection from a failed second page. Otherwise, a transient failure can turn into a false disappearance alert.

This walkthrough collects one employer listing that you are authorized to access. The runnable pagination and refresh example uses a fictional, owned careers site. Separate evidence includes an official Greenhouse JSON alternative and one accepted raw managed retrieval of a selected published Greenhouse posting. ScrapingAnt is an optional HTML transport; parsing and validation remain explicit Python code.

Retail Shelf Intelligence - Validate SKU Price and Stock Data

· 14 min read
Oleg Kulyk
Co-Founder @ ScrapingAnt

Retail Shelf Intelligence - Validate SKU Price and Stock Data

Correction (2026-10-13)

The original article described broad CPG analytics and made unsupported claims about automatic extraction, layout adaptation and retailer coverage. This revision narrows the task to validated product observations and corrects the API parameter names to browser and proxy_country. Download the reproducibility packet.

A retail price observation needs a product identity, the selected variant and pack size, the offer being quoted, and evidence for its availability. Otherwise, a cheaper subscription offer or a smaller pack can look like a price drop. A failed page can look like an out-of-stock product if the collector treats every missing value as a stock signal.

This walkthrough builds a small source-specific Python collector for repeated SKU observations. It keeps unknown availability, rejected fields and acquisition failures distinct from explicit out-of-stock evidence. The runnable controls use a fictional tea family with two selected weight packs. A separate direct retail observation and optional managed retrieval are recorded separately. Completeness refers to those selected offers, not a retailer’s full inventory.

LLM-Powered Trend Analysis - From Scraped Signals to Narratives

· 14 min read
Oleg Kulyk
Co-Founder @ ScrapingAnt

LLM-Powered Trend Analysis: From Scraped Signals to Narratives

Large language models (LLMs) are changing how organizations interpret digital signals into meaningful narratives. Instead of manually interpreting search data, social chatter, and web content, analysts can now use LLMs to convert raw, noisy signals into structured insights and strategic recommendations. When combined with web scraping pipelines and tools like Google Trends, this creates a powerful stack for continuous trend detection, interpretation, and communication.

Header Mutation Fuzzing - Discovering the Minimal Identity to Avoid Blocks

· 15 min read
Oleg Kulyk
Co-Founder @ ScrapingAnt

Header Mutation Fuzzing: Discovering the Minimal Identity to Avoid Blocks

HTTP header–based fingerprinting and bot detection have become core defenses in modern web infrastructures. For anyone building large-scale web crawlers, competitive intelligence systems, or AI-powered data pipelines, understanding and manipulating HTTP headers is often the difference between reliable access and constant blocking.

Headless vs. Headful Browsers in 2025 - Detection, Tradeoffs, Myths

· 16 min read
Oleg Kulyk
Co-Founder @ ScrapingAnt

Headless vs. Headful Browsers in 2025: Detection, Tradeoffs, Myths

In 2025, the debate between headless and headful browsers is no longer academic. It sits at the core of how organizations approach web automation, testing, AI agents, and scraping under increasingly aggressive bot-detection regimes. At the same time, AI-driven scraping backbones like ScrapingAnt - which combine headless Chrome clusters, rotating proxies, and CAPTCHA avoidance - have reshaped what “production-ready” scraping looks like.