\n```\n\nIf that exists, extraction becomes much easier and more reliable.\n\n---\n\n## 2) Build a crawler pipeline\n\nA robust pipeline usually has these stages:\n\n### A. Discovery\nFind product URLs by crawling:\n- category pages\n- pagination\n- sitemap URLs\n- internal search results\n\n### B. URL normalization\nMake sure you:\n- remove tracking parameters\n- canonicalize URLs\n- deduplicate product URLs\n\nExample of parameters to strip:\n- `utm_*`\n- `ref`\n- `sessionid`\n- other tracking/query noise\n\n### C. Fetching\nUse:\n- `requests` / `httpx` for static pages\n- Playwright/Selenium for JS-heavy sites\n\n### D. Parsing\nExtract:\n- title\n- price\n- currency\n- SKU / model\n- availability\n- images\n- description\n- brand\n- category\n- ratings/reviews if needed\n\n### E. Storage\nStore raw HTML plus structured output:\n- raw HTML for debugging\n- parsed JSON for downstream use\n\n---\n\n## 3) Handle many ecommerce sites with a hybrid strategy\n\nThere are two main approaches:\n\n### Option 1: Generic extractor + fallback rules\nWorks well when many sites use similar patterns.\n\nTry extracting from:\n- JSON-LD\n- microdata\n- Open Graph tags\n- meta tags\n- common CSS selectors\n\nThis can cover a large percentage of sites with little per-site work.\n\n### Option 2: Site-specific templates\nFor sites that differ a lot, define a config per domain:\n\n```json\n{\n \"example.com\": {\n \"product_title\": \"h1.product-title\",\n \"price\": \".price .amount\",\n \"availability\": \".stock-status\"\n }\n}\n```\n\nThis is usually the most maintainable approach at scale.\n\n---\n\n## 4) Use structured data first\n\nFor product pages, the best source is often:\n\n- `JSON-LD`\n- `schema.org/Product`\n- `Offer`, `AggregateRating`, `Review`\n\nWhy:\n- less brittle than CSS selectors\n- often cleaner and more complete\n- less affected by layout changes\n\nYou can parse JSON-LD with a simple HTML parser and a JSON decoder.\n\n---\n\n## 5) Be careful with dynamic pages\n\nMany ecommerce sites load product data via JavaScript.\n\nSigns:\n- page source has little content\n- network requests load product info from an API\n- price appears only after JS runs\n\nIn those cases:\n- use Playwright to render the page, or\n- inspect network calls and hit the underlying JSON endpoint directly if permitted\n\nDirect API-style endpoints are often faster and more stable than browser rendering.\n\n---\n\n## 6) Respect crawl etiquette and legal constraints\n\nImportant:\n- Check **robots.txt**\n- Follow site **terms of service**\n- Use reasonable request rates\n- Add proper user-agent identification\n- Implement retry/backoff\n- Avoid overwhelming servers\n\nIf you’re crawling many sites, rate limit per domain:\n- e.g. 1 request/second/domain, or slower\n- queue by host to avoid bursts\n\n---\n\n## 7) Recommended tech stack\n\nA common setup:\n\n### For crawling\n- **Scrapy** for large-scale crawling\n- **Requests/httpx** for simpler jobs\n- **Playwright** for JS-heavy pages\n\n### For parsing\n- `BeautifulSoup` or `lxml`\n- `extruct` for structured data extraction\n\n### For orchestration\n- Celery / Kafka / Redis queue\n- cron / Airflow / Prefect for scheduling\n\n### For storage\n- PostgreSQL for structured product data\n- S3 / blob storage for raw HTML\n- Elasticsearch/OpenSearch if you need search\n\n---\n\n## 8) A simple architecture that works well\n\n**URL Frontier**\n- category pages, sitemap URLs, seeds\n\n**Crawler Workers**\n- fetch pages\n- obey per-domain rate limits\n\n**Extractor**\n- parse JSON-LD\n- fallback to HTML selectors\n\n**Normalizer**\n- standardize price, currency, availability, brand\n\n**Database**\n- save current product state\n- track changes over time\n\n---\n\n## 9) Practical extraction order\n\nWhen processing a product page, try in this order:\n\n1. **JSON-LD**\n2. **Microdata**\n3. **Meta tags**\n4. **Common DOM selectors**\n5. **Fallback heuristics**\n\nThis gives you the highest success rate with minimal site-specific code.\n\n---\n\n## 10) Example workflow\n\n1. Seed crawler with sitemap/category URLs for each domain \n2. Crawl listing pages an"}}}

Prompt

How do I crawl product pages across many ecommerce sites?

Technology / Cloud Infrastructure2 observationsLast seen Nov 12, 2026

Latest observation

Nov 12, 2026OpenAI APIWeb search: off

Crawling product pages across many ecommerce sites is doable, but the hard part is doing it safely, at scale, and in a way that survives different site structures. The best approach is usually a combination of:

  1. Prefer official data sources first
  2. Use a crawler only where needed
  3. Extract product data with site-specific rules
  4. Respect robots.txt, rate limits, and terms of service

Here’s a practical way to think about it.


1) Start with the easiest sources

Before crawling HTML pages, check whether the site exposes product data through:

  • Sitemaps (/sitemap.xml, product sitemaps)
  • Structured data on pages (schema.org/Product JSON-LD)
  • Feeds / APIs
  • Pagination and category pages
  • Internal search endpoints if allowed

Often, product pages already include structured data like:

<script type="application/ld+json">
{
  "@type": "Product",
  "name": "Running Shoe",
  "sku": "123",
  "offers": {
    "@type": "Offer",
    "price": "79.99",
    "priceCurrency": "USD"
  }
}
</script>

If that exists, extraction becomes much easier and more reliable.


2) Build a crawler pipeline

A robust pipeline usually has these stages:

A. Discovery

Find product URLs by crawling:

  • category pages
  • pagination
  • sitemap URLs
  • internal search results

B. URL normalization

Make sure you:

  • remove tracking parameters
  • canonicalize URLs
  • deduplicate product URLs

Example of parameters to strip:

  • utm_*
  • ref
  • sessionid
  • other tracking/query noise

C. Fetching

Use:

  • requests / httpx for static pages
  • Playwright/Selenium for JS-heavy sites

D. Parsing

Extract:

  • title
  • price
  • currency
  • SKU / model
  • availability
  • images
  • description
  • brand
  • category
  • ratings/reviews if needed

E. Storage

Store raw HTML plus structured output:

  • raw HTML for debugging
  • parsed JSON for downstream use

3) Handle many ecommerce sites with a hybrid strategy

There are two main approaches:

Option 1: Generic extractor + fallback rules

Works well when many sites use similar patterns.

Try extracting from:

  • JSON-LD
  • microdata
  • Open Graph tags
  • meta tags
  • common CSS selectors

This can cover a large percentage of sites with little per-site work.

Option 2: Site-specific templates

For sites that differ a lot, define a config per domain:

{
  "example.com": {
    "product_title": "h1.product-title",
    "price": ".price .amount",
    "availability": ".stock-status"
  }
}

This is usually the most maintainable approach at scale.


4) Use structured data first

For product pages, the best source is often:

  • JSON-LD
  • schema.org/Product
  • Offer, AggregateRating, Review

Why:

  • less brittle than CSS selectors
  • often cleaner and more complete
  • less affected by layout changes

You can parse JSON-LD with a simple HTML parser and a JSON decoder.


5) Be careful with dynamic pages

Many ecommerce sites load product data via JavaScript.

Signs:

  • page source has little content
  • network requests load product info from an API
  • price appears only after JS runs

In those cases:

  • use Playwright to render the page, or
  • inspect network calls and hit the underlying JSON endpoint directly if permitted

Direct API-style endpoints are often faster and more stable than browser rendering.


6) Respect crawl etiquette and legal constraints

Important:

  • Check robots.txt
  • Follow site terms of service
  • Use reasonable request rates
  • Add proper user-agent identification
  • Implement retry/backoff
  • Avoid overwhelming servers

If you’re crawling many sites, rate limit per domain:

  • e.g. 1 request/second/domain, or slower
  • queue by host to avoid bursts

7) Recommended tech stack

A common setup:

For crawling

  • Scrapy for large-scale crawling
  • Requests/httpx for simpler jobs
  • Playwright for JS-heavy pages

For parsing

  • BeautifulSoup or lxml
  • extruct for structured data extraction

For orchestration

  • Celery / Kafka / Redis queue
  • cron / Airflow / Prefect for scheduling

For storage

  • PostgreSQL for structured product data
  • S3 / blob storage for raw HTML
  • Elasticsearch/OpenSearch if you need search

8) A simple architecture that works well

URL Frontier

  • category pages, sitemap URLs, seeds

Crawler Workers

  • fetch pages
  • obey per-domain rate limits

Extractor

  • parse JSON-LD
  • fallback to HTML selectors

Normalizer

  • standardize price, currency, availability, brand

Database

  • save current product state
  • track changes over time

9) Practical extraction order

When processing a product page, try in this order:

  1. JSON-LD
  2. Microdata
  3. Meta tags
  4. Common DOM selectors
  5. Fallback heuristics

This gives you the highest success rate with minimal site-specific code.


10) Example workflow

  1. Seed crawler with sitemap/category URLs for each domain
  2. Crawl listing pages and collect product links
  3. Visit each product page
  4. Extract JSON-LD product schema
  5. If missing, fall back to site-specific selectors
  6. Store normalized product record
  7. Re-crawl periodically to detect price/stock changes

11) Minimal Python example

A simple static-page extractor:

import requests
from bs4 import BeautifulSoup
import json

url = "https://example.com/product/123"
html = requests.get(url, headers={"User-Agent": "MyCrawler/1.0"}).text
soup = BeautifulSoup(html, "html.parser")

# Try JSON-LD
for script in soup.find_all("script", type="application/ld+json"):
    try:
        data = json.loads(script.string or script.get_text())
        print(data)
    except Exception:
        pass

This is just a starting point; in real use you’d:

  • handle multiple JSON-LD blocks
  • normalize arrays
  • extract fields from Product objects
  • add retries and rate limiting

12) What makes this hard at scale

Challenges you’ll run into:

  • inconsistent HTML across sites
  • anti-bot measures
  • JS rendering
  • geo-based pricing
  • variants (size/color)
  • currency differences
  • product availability changes
  • redirects and canonical URLs
  • duplicate product pages

Plan for these early.


13) Best practice recommendation

If you want to crawl across many ecommerce sites reliably:

  • Use sitemaps and structured data wherever possible
  • Build a generic extractor
  • Add domain-specific overrides
  • Use Playwright only for the sites that require it
  • Maintain a URL deduplication and normalization layer
  • Store raw HTML + parsed data for debugging and reprocessing

If you want, I can also give you:

  1. a Scrapy project structure for multi-site product crawling,
  2. a Playwright + Python example, or
  3. a schema for normalized product data.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (2 observations for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.