<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Md Iftekhar Hossain</title>
    <description>The latest articles on DEV Community by Md Iftekhar Hossain (@mdifte).</description>
    <link>https://dev.to/mdifte</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4267667%2F701b8a92-c071-4731-afce-fa8014051e01.jpg</url>
      <title>DEV Community: Md Iftekhar Hossain</title>
      <link>https://dev.to/mdifte</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mdifte"/>
    <language>en</language>
    <item>
      <title>I built a price comparison site for tech shops in Bangladesh (22 retailers, 17k products)</title>
      <dc:creator>Md Iftekhar Hossain</dc:creator>
      <pubDate>Thu, 26 Nov 2026 20:21:13 +0000</pubDate>
      <link>https://dev.to/mdifte/i-built-a-price-comparison-site-for-tech-shops-in-bangladesh-22-retailers-17k-products-1769</link>
      <guid>https://dev.to/mdifte/i-built-a-price-comparison-site-for-tech-shops-in-bangladesh-22-retailers-17k-products-1769</guid>
      <description>&lt;p&gt;If you've ever bought a phone or laptop in Bangladesh, you know the routine: open Star Tech, Ryans, Pickaboo, Apple Gadgets and a few Facebook-page shops in separate tabs, then compare prices by hand. The same model can differ by several thousand taka between shops, and prices change every week.&lt;/p&gt;

&lt;p&gt;I got tired of that, so I built &lt;strong&gt;&lt;a href="https://komkoto.bd/" rel="noopener noreferrer"&gt;KomKoto.bd&lt;/a&gt;&lt;/strong&gt; (কম কত — "how much less?"). It shows the listed price of one product across Bangladeshi retailers on a single page.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compares prices across 22 shops.&lt;/strong&gt; Star Tech, Ryans, Pickaboo, Apple Gadgets, KRY International, Techland BD, UCC, Daffodil Computers, Rokomari and more. It currently tracks about 17,000 products.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Groups the same product.&lt;/strong&gt; "iPhone 18 Pro Max 256GB" from four shops shows up as one product, with each shop's price and stock status.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flags real price drops.&lt;/strong&gt; Today's lowest price is compared with the product's typical price over the last 30 days, so a "sale" has to be below the usual price to count.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sends price alerts.&lt;/strong&gt; Pick a variant and a target price, and you get an email when an in-stock offer reaches it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Works in Bangla and English.&lt;/strong&gt; Category names and the main interface use both.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How it's built
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; React + TypeScript + Tailwind, built with Vite.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API:&lt;/strong&gt; FastAPI serving a read-only public catalog API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database:&lt;/strong&gt; PostgreSQL.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search:&lt;/strong&gt; Meilisearch, kept in sync by a background worker.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scrapers:&lt;/strong&gt; one Python scraper per retailer. Some shops expose a WooCommerce Store API, which is much easier to work with than parsing HTML.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The hard part: matching products
&lt;/h3&gt;

&lt;p&gt;Scraping prices is the easy half. Deciding that two listings are the &lt;em&gt;same product&lt;/em&gt; is much harder. Retailers name products very differently:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Apple iPhone 18 Pro Max (256GB) - Cosmic Orange
iPhone 18 Pro Max 256 GB Orange (Official)
iPhone 18 ProMax 12/256GB
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Storage, RAM, colour, region and "official vs. unofficial" all matter for the price. A wrong match is worse than no match, because it shows people a price they can't actually get.&lt;/p&gt;

&lt;p&gt;My pipeline combines text normalisation with an embedding-based candidate search, then runs a small locally fine-tuned model to decide whether two listings match. Uncertain cases go to a human review queue. Even after fine-tuning, a blind benchmark still showed some false automatic matches, so I don't let the model run unattended on large batches yet.&lt;/p&gt;

&lt;h3&gt;
  
  
  Lessons so far
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Be careful with "lowest price".&lt;/strong&gt; Shops sometimes list prices for out-of-stock items, or prices without VAT or warranty. KomKoto only treats in-stock offers as live, and it reminds people to check the shop's final price.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Variants deserve their own pages.&lt;/strong&gt; An 8/128 phone and a 12/256 phone are different purchases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep admin tools off the server.&lt;/strong&gt; The scrapers, the matcher and the admin panel run on my own machine. The public server only runs the read-only site, the API and search.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;If you're shopping for a phone, laptop, earbuds or PC parts in Bangladesh, try &lt;a href="https://komkoto.bd/" rel="noopener noreferrer"&gt;KomKoto.bd&lt;/a&gt; and tell me which shops or categories are missing. I'm also happy to answer questions about the scraping or matching setup in the comments.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>python</category>
      <category>react</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
