A catalog scraper over three sources
Collects products from three sources, survives a server error, brings prices to one format and removes duplicates.
Demo
Synthetic data. The numbers are computed from the data shown and describe no real customers
Sources
- shop-north.example
- market-west.example
- catalog-east.example
Limits
- Only sections allowed by robots.txt
- At most 1 request per second per source
- Up to 3 retries on error, with a pause
- Fetch
- Parse
- Normalize
- Duplicates
- Export
- $ scrape --sources 3 --rate 1/s
- Task
- Show how a scheduled data collection works: what happens to errors, duplicates and prices in different formats.
- Constraints
- Only sections allowed by robots.txt, at most 1 request per second per source
- Sources return prices and SKUs in different formats
- One source temporarily answers with a 503 error
- What we did
- A retry with a pause on error, up to three attempts
- SKUs, names and prices normalized to one format
- Duplicate search by SKU and a second run that shows only the changes
- Result
- The demo runs on this page. Every row and number in it is synthetic and computed from the data shown
