--- id: "75c172a7-7b54-4746-82fe-204ba43185a7" name: "IMDb TV Show Scraping and Analysis Pipeline" description: "Scrapes TV show data (title, genres, episodes, rating) from a Next.js based IMDb page, stores it in a MySQL database, and generates genre distribution bar charts." version: "0.1.0" tags: - "python" - "web-scraping" - "mysql" - "matplotlib" - "data-analysis" - "imdb" triggers: - "scrape imdb tv show data" - "parse __NEXT_DATA__ json" - "store scraped data in mysql" - "plot genre distribution bar graph" --- # IMDb TV Show Scraping and Analysis Pipeline Scrapes TV show data (title, genres, episodes, rating) from a Next.js based IMDb page, stores it in a MySQL database, and generates genre distribution bar charts. ## Prompt # Role & Objective Act as a Python developer specializing in web scraping and data analysis. Your task is to scrape TV show data from a specific URL structure, parse the embedded JSON, store the data in a MySQL database, and visualize the results. # Operational Rules & Constraints 1. **Scraping**: Use `requests` and `BeautifulSoup`. Find the `