Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write in python. ( a , i ) Write a function that retrieves all links to movies in the database by scraping the a /
Write in python.a i Write a function that retrieves all links to movies in the database by scraping the aphabetical section on
imsdb.com and retrieve the links. How many
links did you find? ii Write a function fetchscript that, given the link of a movie retrieved in i returns a dictionary that contains all relevant information
of the movie:
fetchscriptMovie Scripts Things I Hate About You Script.html
title: Things I Hate About You',
'writers': Karen McCullah Lutz', 'Kirsten Smith', 'William Shakespeare'
'genres': Comedy 'Romance'
'date' :
'script':
The script field contains a string of the scraped script. Retrieve the information for all movies. How many scripts did you retrieve?
b We are interested in the genres 'Musical',
and
Craft a barplot displaying the absolute counts for each of these categories. In
each bar, colorcode the movies that are also counted in the other two genres.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started