BAFTA Scripted Comedy Awards: Winners & Nominees (2016–2025)
1. Business Question
Which scripted comedies have dominated the BAFTAs over the last decade?
2. Data & Plumbing
I built an end-to-end pipeline in Python, SQL and APIs to go from a Wikipedia page to the final poster montage:
- Scraping BAFTA data
- Pulled the “British Academy Television Award for Best Scripted Comedy” page with
requests
+BeautifulSoup
. - Parsed out year, show title and nominee vs. winner tags.
- Saved the raw table to CSV for sanity checks.
- Pulled the “British Academy Television Award for Best Scripted Comedy” page with
- IMDB ID matching & database ingestion
- Loaded that CSV into a staging table in my local IMDb SQL Server.
- Used a small Python script (
pandas
+fuzzywuzzy
) to match show titles to IMDbtconst
IDs. - Populated a
bafta_comedy_awards
table withawardyear
,bafta_status
andtconst
.
- Metadata enrichment via TMDb
- For each
tconst
, called TMDb’s “find” endpoint to get theposter_path
. - Downloaded the “original”-size poster images from TMDb’s CDN.
- Cached metadata (title, dimensions, poster URL) in a JSON file.
- For each
- Visualization
- Wrote a Python script using Pillow (and matplotlib) to layout a two-row montage: winners large on left, nominees stacked to the right.
- Overlaid each poster with a hollow “year” label, keeping text legible and titles uncut.
- Produced both a high-resolution PNG and a mobile-optimized JPEG.
3. Visualization
License
Code & write-up: MIT
Data & images:
- IMDb data © IMDb
- Posters via TMDb API (terms apply)
- Wikipedia content under CC BY-SA