# baibhavbittutiwari/movie-title-scraper-recommender architecture

> Architecture diagram of the GitHub repository baibhavbittutiwari/movie-title-scraper-recommender, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/baibhavbittutiwari/movie-title-scraper-recommender
- Repository: https://github.com/baibhavbittutiwari/movie-title-scraper-recommender

## Overview

##### – Identify the Project Type and Purpose
- This is a Python-based tool that combines web scraping with data processing and a content-based recommendation engine.
- Its primary functions include scraping movie titles from Rotten Tomatoes, cleaning the data, and then offering movie recommendations based on genre similarities.

##### – Analyze the File Structure
- The project is comprised of several loose, top-level files:
- "rotten_tomato.py": Contains the Scrapy-based web scraper component.
- "Data Cleaner.ipynb": Implements the data processing/cleaning logic (using pandas).
- "Movie_recommendation.ipynb": Holds the recommendation system implementation (likely handling the cosine similarity algorithm for genre matching).
- "Movies_final.csv": The data storage file where cleaned/scraped movie data is kept.
- "README.md" and "LICENSE": Provide project documentation and licensing.
- The absence of complex directories suggests a simple, linear workflow rather than a multi-layered full-stack application. The focus is on data extraction, cleaning, and recommendation.

##### – Extract Insights from the README
- The README clearly outlines three main components:
a. Web Scraper: Built with Scrapy to extract movie titles.
b. Data Processing & Analysis: Using pandas for cleaning and organizing data.
c. Recommendation System: A content-based system that calculates cosine similarity between movie genres.

## Diagram (Mermaid)

```mermaid
flowchart TD
    A["Web Scraper (rotten_tomato.py)\n[Scrapy]"]:::scraper
    B["Data Cleaner (Data Cleaner.ipynb)\n[pandas]"]:::processing
    C["Data Store (Movies_final.csv)"]:::store
    D["Recommendation Engine (Movie_recommendation.ipynb)\n[Cosine Similarity]"]:::recommendation

    A -->|"extracts data"| B
    B -->|"outputs cleaned data"| C
    C -->|"supplies data"| D

    %% Click Events
    click A "https://github.com/baibhavbittutiwari/movie-title-scraper-recommender/blob/main/rotten_tomato.py"
    click B "https://github.com/baibhavbittutiwari/movie-title-scraper-recommender/blob/main/Data Cleaner.ipynb"
    click C "https://github.com/baibhavbittutiwari/movie-title-scraper-recommender/blob/main/Movies_final.csv"
    click D "https://github.com/baibhavbittutiwari/movie-title-scraper-recommender/blob/main/Movie_recommendation.ipynb"

    %% Styles
    classDef scraper fill:#ffcc00,stroke:#333,stroke-width:2px;
    classDef processing fill:#a2d5ab,stroke:#333,stroke-width:2px;
    classDef store fill:#add8e6,stroke:#333,stroke-width:2px;
    classDef recommendation fill:#ff9999,stroke:#333,stroke-width:2px;
```
