DEV Community

Partha Singh
Partha Singh

Posted on

How I Built a Google Shopping Scraper with Python & Playwright

Why I Built This
I wanted to compare prices across Google Shopping without clicking through 100 tabs manually. So I built a scraper that does it in seconds.

What It Does
Searches Google Shopping for any product
Extracts title, price, image, stock status, rating, review count, seller name, and link
Works across multiple sellers — Flipkart, Amazon, Croma, Ubuy and more
Saves output as JSON and CSV automatically

Tech Stack
Python
Playwright
JSON / CSV

Output
{
"title": "Samsung Galaxy S25 Ultra 12+256",
"price": "₹94,999",
"source": "Telephone Shoppees",
"rating": "4.8",
"ratingCount": "112k user reviews",
"stock": "In stock online"
}

Top comments (0)