Question: 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 a/phabetical section on
imsdb.com and retrieve the links. How many
links did you find? (ii) Write a function fetch_script that, given the link of a movie retrieved in (i), returns a dictionary that contains all relevant information
of the movie:
fetch_script('/Movie Scripts/10 Things I Hate About You Script.html')
{'title': '10 Things I Hate About You',
'writers': ['Karen McCullah Lutz', 'Kirsten Smith', 'William Shakespeare'],
'genres': ['Comedy', 'Romance'],
'date' : 1997,
'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, color-code the movies that are also counted in the other two genres.
 Write in python.(a, i) Write a function that retrieves all links

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!