How to aggregate supplier product feeds efficiently using web scraping
If you've ever tried to pull product data from twenty different supplier websites into one clean feed, you know the pain. Each site has its own structure, its own quirks, and half of them change their markup without warning. Doing this manually isn't just slow — it's a recipe for errors that cascade into wrong prices, missing SKUs, and angry customers.
Web scraping solves this, but only if you approach it right. Here's what actually works in practice.
The real problem isn't extraction — it's normalization
Everyone focuses on getting data out of HTML. The harder part is making it consistent once you have it.
Supplier A calls it "SKU", Supplier B uses "Product Code", and Supplier C buries it in a data attribute. One lists prices with VAT included, another shows ex-VAT, a third uses a separate currency field. Descriptions come as raw HTML, markdown, or plain text with random line breaks. Images might be absolute URLs, relative paths, lazy-loaded data-src attributes, or buried in JavaScript-rendered galleries.
Before you write a single selector, define your canonical schema. At minimum you need:
- Unique identifier (your internal SKU + supplier code)
- Title, normalized description (strip tags, preserve line breaks)
- Price: amount, currency, tax_included boolean
- Stock status mapped to your enum: in_stock, low_stock, out_of_stock, preorder
- Category path (supplier's taxonomy → your taxonomy)
- Images: primary URL + gallery array, all validated and absolute
- Attributes as key-value pairs (color, size, material, etc.)
- Last-seen timestamp and source URL for audit trail
Build a transformation layer that maps every supplier's quirks into this schema. That layer is where the real maintenance burden lives — not the scraper itself.
Pick the right tool for each source
Not every supplier site needs a headless browser. In fact, most don't.
Static HTML + CSS selectors — fastest, cheapest, most reliable. Works for 60-70% of supplier catalogs. Use requests + lxml/BeautifulSoup or a lightweight scraper like MyDataProvider's HTTP mode.
JavaScript-rendered content — if product data loads via XHR/fetch after page load, intercept the API calls directly. Open DevTools, filter Network by XHR/Fetch, find the JSON endpoint. It's usually cleaner and faster than rendering the full page.
Headless browser (Playwright/Puppeteer) — only when you truly need it: infinite scroll, complex auth flows, canvas fingerprinting, or when the API is obfuscated beyond reason. It's 10-50x slower and flakier. Use sparingly.
MyDataProvider lets you configure per-source: simple HTTP for static sites, API interception for AJAX-heavy ones, browser mode only where necessary. That keeps runs fast and costs down.
Handle pagination and discovery systematically
Suppliers love pagination patterns that break naive scrapers:
- Page numbers in URL (?page=3) — easy
- Offset/limit parameters — easy
- "Load more" buttons triggering AJAX — intercept the request
- Infinite scroll — use browser mode with scroll-to-bottom logic
- Cursor-based pagination (opaque tokens) — follow the chain
- Sitemap.xml — best starting point, often lists every product URL
Don't hardcode page counts. Detect "next page" existence dynamically. Set a reasonable max-pages guard (e.g., 500) to catch runaway loops when a site changes.
Rate limiting: be a good citizen, avoid bans
Aggressive scraping gets you blocked. Conservative scraping wastes time. The sweet spot:
- Start at 1 request/second per domain
- Respect robots.txt Crawl-delay if present
- Add jitter (±20%) so you don't look like a bot
- Back off exponentially on 429/5xx responses
- Rotate IPs if you need higher throughput — but most supplier catalogs are small enough that a single well-behaved IP finishes in minutes
If a supplier provides a proper data feed (XML, CSV, JSON, FTP), use that instead. Scraping is a last resort when no feed exists or the feed is stale/incomplete.
Deal with structure changes before they break you
Sites change. Your scraper will break. Plan for it:
- Selector validation: After each run, verify you extracted expected fields for a sample of products. If title or price is missing on >5% of items, alert.
- Fallback selectors: Define 2-3 selector strategies per field (primary CSS, XPath fallback, regex from page text). Try in order.
- Change detection: Hash the raw HTML of key pages (category, product detail). If hash changes, flag for review before the next run.
- Version your extractors: Tag each supplier config with a version. When you fix a broken selector, bump the version. Rollback is one click.
Deduplication across suppliers
Same product, three suppliers. You need one master record.
Match on: GTIN/EAN/UPC (gold standard), then manufacturer part number, then fuzzy title+brand matching. Build a matching pipeline that scores candidates and auto-merges above a threshold, queues the rest for manual review.
Keep supplier-specific overrides: Supplier A's price, Supplier B's stock, Supplier C's richer description. Your master record references all sources.
Scheduling and incremental updates
Full re-scrapes waste bandwidth and trigger rate limits. Do this instead:
- Daily incremental: Only scrape products modified since last run (check last-modified headers, sitemap lastmod, or a "new/updated" category page).
- Weekly full: Catch anything incremental missed — deleted products, restructured categories.
- On-demand: Trigger a specific supplier re-scrape when you know they launched a new catalog.
Track "last successful scrape" per product. If a product hasn't been seen in 2+ full cycles, mark it potentially discontinued — don't auto-delete, flag for review.
Monitoring that actually tells you something
Don't just log "success/failure." Track:
- Products extracted vs. expected (from sitemap/category page count)
- Field completeness rates (what % have images? prices? stock?)
- Price change magnitude distribution (catch parser errors — a $1,200 item becoming $12.00 is a bug, not a sale)
- Latency per source (spikes = site issues or blocking)
- Error categorization: network, parse, validation, schema
Build a simple dashboard. You'll spot broken extractors in hours, not days.
Legal and ethical basics
Scrape responsibly:
- Check ToS — some explicitly forbid scraping. Respect it or get permission.
- Don't scrape personal data, customer reviews, or non-public pages.
- Identify your bot with a clear User-Agent and contact email.
- If a supplier offers an API or feed, use it. It's more reliable and keeps the relationship intact.
Putting it together with MyDataProvider
You can build all this yourself — queues, schedulers, proxy rotation, change detection, normalization pipelines, monitoring. We did. It took months.
MyDataProvider packages it so you configure sources in a UI (or YAML), define your canonical schema once, and get clean JSON/CSV/XML/SQL output on your schedule. The platform handles:
- Multi-mode extraction (HTTP, API intercept, browser) per source
- Selector versioning with visual testing
- Incremental runs with change detection
- Built-in normalization to your schema
- Deduplication and master-record management
- Alerting on completeness drops or schema drift
- Delivery to S3, FTP, webhook, database, or API
What used to be a week of Python scripting becomes an afternoon of config. When a supplier redesigns their site, you update selectors in the UI, test against last week's cached HTML, and deploy — no code deploy needed.
Start small, iterate fast
Don't boil the ocean. Pick your top 3 suppliers by revenue impact. Get them stable. Add the next batch. The normalization layer you build for the first three will handle the rest with minor tweaks.
Within a month you'll have a feed that's fresher, more complete, and less maintenance than any manual process — and you'll wonder why you ever did it by hand.
Have a scraping or integration task? Let our AI solve it.
Describe what data you need or which systems to connect — our AI builds and runs the scraper or integration for you. No coding required.
Free for 30 days, no card needed · already have an account?

