Professional

Product Web Crawler

· Pricesearcher

A sitemap branching into merchant web pages and product records.

Problem

Merchant websites were another source of product data for Pricesearcher’s comparison service. The crawler had to find product pages from sitemaps and extract structured data while accommodating different sites and controlling repeated-request costs.

Constraints

Sitemaps could be gzipped; merchant inputs and crawl schedules changed independently of application releases. Crawl state had to span cycles, environments and AWS regions. Crawling less often saves requests but increases the time before changed prices appear.

Solution

A Python crawler on AWS used S3-hosted sitemap sources and DynamoDB for crawl state and cycles. A management API behind Cognito and API Gateway managed merchants and ingestion sources; separate deployments served environments and regions. A companion crawler collected website metadata.

My Role

I moved sitemap sources to S3, added compressed-sitemap support and adjusted selected crawl schedules. I worked on management API endpoints, authentication, SQLAlchemy models, deployment-time migrations and the website-metadata crawler.

Technologies

Python, AWS (Lambda, S3, DynamoDB, Cognito, API Gateway), SQLAlchemy, Docker, Terraform.

Engineering Challenges

  • Changeable sources without redeployment: S3-hosted sitemap inputs separated merchant-source maintenance from crawler releases, including support for gzip input.
  • Freshness has a cost: I adjusted schedules so less frequently changing pages were requested less often, accepting a longer update interval in exchange for fewer repeated crawls.
  • Operational boundaries: Merchant/source administration required authenticated endpoints and migrations alongside the crawling jobs, not just extraction code.

Outcome

The crawler accepted compressed sitemaps and could maintain source lists in S3 without an application redeploy. Adjusted schedules and the management API supported ongoing operations; no measured crawl-cost reduction is available to publish.

Relevant services

Have a Python, AI or automation problem?

Tell me what is slowing the business down, what you have tried, and what a successful outcome looks like. I'll help you identify the most sensible next step.