Answered step by step
Verified Expert Solution
Link Copied!

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 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

hire your universitys graduates or those from your school?

Answered: 1 week ago

Question

2. Why has the conflict escalated?

Answered: 1 week ago

Question

1. What might have led to the misinformation?

Answered: 1 week ago