Capabilities
What it does- Extract
- Point it at a store URL. It detects the platform, finds the product pages and returns titles, prices, images, variants, SKUs and GTINs.
- Compare
- Search one product across several stores, or compare two whole catalogs and see what is cheaper where.
- Monitor
- Take snapshots over time and report price changes, new products and removals.
- Validate
- Check product data against Google Shopping, idealo, Amazon or eBay feed rules before you submit it.
- Export
- JSON, CSV, marketplace feeds, pandas DataFrame or Parquet.
Quick start
Pythonimport asyncio
import shopextract
async def main():
result = await shopextract.extract("https://example-store.com")
print(result.platform, result.product_count)
for product in result.products:
print(product.title, product.price, product.currency)
asyncio.run(main()) One call handles platform detection, URL discovery and extraction. It tries the fastest method first and falls back on its own.
CLI
9 commandsEverything the library does is also a command, so it works in a shell script or a cron job without writing Python.
shopextract extract <url> Extract products from a store. -n limits URLs, -f picks json or csv, -o writes a file. shopextract detect <url> Report which e-commerce platform the store runs on. shopextract discover <url> List product URLs without extracting them. shopextract compare <query> Compare prices for one product across stores. Repeat -s for each store. shopextract snapshot <url> Save the catalog as it is now. shopextract changes <domain> Show what changed between two snapshots. shopextract history <domain> <product> Price history for one product. shopextract analyze <url> Catalog statistics: price buckets, outliers, brand share. shopextract validate <file> Validate products against a marketplace. -m names the marketplace. Agent tools
MCP serverAn AI agent can drive shopextract through an MCP server. The server runs on your machine, needs no model or account, and only reads. The operator lists which stores the agent may reach; every other origin is denied.
discover Find product URLs on an allowed store. extract Return normalised products and variants, with the evidence for each field. match Match two catalogs. Uncertain matches stay uncertain. changes Report changes between two captures of the same store. evidence Return the captured source for a field, without fetching the page again. pip install 'shopextract[mcp]'
python -m shopextract.tools --config tools-config.json On the main branch. Not in the PyPI release yet.
Agent tools guideComparison
Across storesSearch one product across stores and get the cheapest, the most expensive, the average and the spread.
shopextract compare "Wireless Headphones" \
-s https://store-a.com \
-s https://store-b.com Or compare two whole catalogs: what only one store has, what both have, and which store is cheaper.
diff = await shopextract.compare_catalogs(
"https://store-a.com",
"https://store-b.com",
)
print(len(diff.in_both), len(diff.cheaper_in_a), len(diff.cheaper_in_b)) Every pair of products gets one of six relations, with the evidence behind it. Only a unique exact match in the same currency enters a price comparison. A similar title alone is a candidate for review, not a match.
- exact
- variant
- bundle
- substitute
- uncertain
- unmatched
Relation reports are on the main branch. Not in the PyPI release yet.
Benchmark
vs FirecrawlTen Pakistani stores, one category page and three product pages each, on 7 Nov 2026. Both tools got the same URLs.
| shopextract | Firecrawl | |
|---|---|---|
| Product pages correct | 21 of 27 | 18 of 27 |
| Wrong product returned | 0 | 3 |
| Category pages that worked | 7 of 10 | 8 of 10 |
| Category page, median time | 17.3 s | about 39 s |
| Product page, median time | 5.5 s | about 3.3 s |
Fields filled, out of the 21 product pages each tool returned.
| ID or SKU | 21 | 12 |
| Price with currency | 21 | 18 |
| Image | 21 | 18 |
| Category | 15 | 6 |
| GTIN or MPN | 6 | 0 |
| Description | 15 | 15 |
| Brand | 9 | 9 |
- One run, ten stores. It is not a claim about every store.
- Firecrawl reached two stores that shopextract did not, from its cloud IPs.
- Three of Firecrawl's 21 product pages were the wrong product, so its field counts include them.
- shopextract was run from the main branch, which is ahead of the PyPI release.