Menu

Building a price comparison tool for Ghanaian shops. The hard part wasn't fetching prices, it was matching them
📰

Building a price comparison tool for Ghanaian shops. The hard part wasn't fetching prices, it was matching them

DEV Community: laravel·Elliot Brenya sarfo·9 days ago
#5SRK8hEN
#devtolaravel#devto#dev#shops#shop
Reading 0:00
15s threshold

In Ghana, the same phone can cost very different amounts depending on where you look. Electronics shops have their own websites, marketplaces have thousands of individual sellers, and nobody puts the prices side by side.

So at TrustCheck , where I'm co-founder, we built Price Check : type "iPhone 15" or "air conditioner" and see the price at several Ghanaian shops at once, with links to each listing.

I assumed fetching the prices would be the hard part. It wasn't. The hard part was answering a question that sounds trivial: is this product actually what the person searched for?

Here's what I learned building it in Laravel 12 on plain shared hosting.

Reading each shop the way its own website does

Every shop is built differently, so there's one small parser per platform:

Shopify shops expose a public predictive-search feed and a /products.json catalogue.

WooCommerce shops usually have their JSON API closed, so we read the search results page and parse the product blocks.

Custom shops often load a whole…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.