This project was developed as part of a Big Data & Databases course assignment. It automates the extraction and processing of data from three different e-commerce domains:
Dermstore (Moisturizers & Makeup Products)
BooksToScrape (Books)
Steam (Games)
The scraped data is cleaned, transformed, and stored using distributed systems like HDFS and MySQL, enabling analytical queries for decision-making.
๐ Web Scraping using Python and Selenium for dynamic content extraction.
๐ฆ Scrapes product details:
Product Name
Price
Size/Volume
Ratings & Review Count
Key Ingredients
Image URLs
Skin Types & Concerns (for Dermstore)
๐ท Downloads and stores product images locally.
๐ธ๏ธ Politeness features like user-agent rotation and random delays.
๐ Stores scraped data as CSV and uploads to HDFS.
๐ข๏ธ Inserts data into MySQL with structured schema (Brand, Product, Image, SkinType, Ingredient, etc.).
๐งช Simulated HDFS redundancy test to verify fault-tolerance.
๐ Supports execution of advanced business queries for analytics.
Python (Selenium, Requests, Pandas)
Docker & Docker Swarm
Hadoop (HDFS)
MySQL
Tailscale (for remote cluster setup)
Jupyter Notebooks (Live demo)
๐ Top 10 books with highest availability.
๐๏ธ Impact of title length on marketing performance.
๐ธ Analysis of book pricing vs. ratings.
๐งด Products with rare ingredients.
๐ Top 5 most-reviewed products with skin type.
๐ต Aging skin products with high ratings under $40.
๐ Average ratings by skin concern.
๐ฎ Top 10 most expensive Steam games.
๐ฐ Free vs. paid game comparison.
๐ Trends in game releases and pricing.
๐งพ Distribution of games by price category.
Python 3
ChromeDriver & Google Chrome
MySQL Server (Docker or local)
Hadoop Cluster (standalone or Docker-based)
HDFS CLI with alias dev
โ๏ธ Setup Instructions Install dependencies:
bash Copy Edit pip install requests pandas selenium webdriver-manager pymysql hdfs Configure HDFS:
Ensure hdfscli is installed and alias dev is configured.
Update MySQL Config in Script:
Modify mysql_insertion.py with your DB host, user, password, and database.
Run the Scraper:
bash Copy Edit python chetanw.py Upload to HDFS:
bash Copy Edit python hdfs_upload.py Insert Data into MySQL:
bash Copy Edit python mysql_insertion.py ๐บ Live Demo ๐ Jupyter Notebook Demo
๐ฅ Demo Video
redundancy test โ by turn off 1 workers while reading and saving data