Skip to content
All work

Data analytics

D2C Brand Health Tracker

Brands' prices, ratings and reviews shift week to week — this pipeline scrapes them over time and scores which brands are becoming vulnerable.

  • Python
  • Selenium
  • PostgreSQL
  • SciPy
  • VADER
  • Power BI
Power BI dashboard comparing average rating by brand

Problem

A single snapshot of a product page says little. To see which direct-to-consumer brands are slipping, you need the same data — price, rating, reviews — tracked over time and turned into comparable signals.

What I built

A longitudinal, self-scraped analytics pipeline across 6 Indian D2C skincare brands (12 SKUs).

  • An ETL pipeline that scrapes price, rating and 222+ reviews using Selenium (plain HTTP requests are blocked by TLS-fingerprint bot detection), respecting robots.txt.
  • A normalised 4-table PostgreSQL schema with idempotent, de-duplicating loads, so every weekly scrape adds dated rows instead of overwriting.
  • Review sentiment scored with VADER.
  • A predictive framework using regression analysis (SciPy) to forecast brand-vulnerability trends, combined into a Brand Vulnerability Score.
  • A 2-page Power BI dashboard connected live through SQL views, surfacing price-vs-rating mismatches and sentiment trends.

Architecture

Selenium scrapers → CSV → PostgreSQL (brands, products, snapshots, reviews) → VADER sentiment → SciPy trend regression → SQL views → Power BI.

Results

A weekly-updating dataset with KPIs for price versus category average, sentiment by brand, top complaint keywords, rating trend slope and review velocity.

Tech stack

  • Scraping: Python, Selenium, BeautifulSoup
  • Storage: PostgreSQL (normalised 4-table schema, SQL views)
  • Analysis: pandas, VADER sentiment, SciPy regression
  • Reporting: Power BI

Next project

DriftSentinel

Concept-drift detectors only react after a streaming model's error rate has already risen — DriftSentinel aims to warn before that happens.

Mean PSI per batch: drift injected at batches 89–93, DDM alarm at 138, ADWIN alarm at 163