Write a program to read the page: https://www.imdb.com/chart/top. Extract the following information from each movie.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Write a program to read the page: https://www.imdb.com/chart/top. Extract the following
information from each movie.
<tr>
►<td class="posterColumn">...</td>
▼<td class="titleColumn"> id
"1. "
<a href="/title/tt0111161/?pf_rd_m=A2FGELUUNOQJNL&pf_rd_p=1a264172
-ae11-42e4-8ef7...MRSGF6ZQ7NCVC9V&pf_rd_s=center-1&pf_rd_t=15506&pf_
rd_i=top&ref_=chttp_tt_1″ title="Frank Darabont (dir.), Tim Robbin
s, Morgan Freeman" The Shawshank Redemption</a>
<span class="secondaryInfo">(1994)</span>
</td>
▼<td class="ratingColumn imdbRating">
<strong title="9.2 based on 2,637,133 user ratings" 9.24/strong>
</td>
►<td class="ratingColumn">...</td>
►<td class="watchlistColumn">...</td> user
</tr>
year
name
rating
Create a DataFrame called q3df to store the complete data. There should be 250 movies.
In four separate cells, execute the following codes one by one and show the outputs.
q3df.shape
q3df.head()
q3df [100:106]
q3df.tail()
In your output, values in the rating and user columns may look different from the example as
they update overtime.
Requirement: use only regular expressions for data extraction (do not use BeautifulSoup 4).
NOTE: CANNOT USE BEAUTIFUL SOUP!
Transcribed Image Text:Write a program to read the page: https://www.imdb.com/chart/top. Extract the following information from each movie. <tr> ►<td class="posterColumn">...</td> ▼<td class="titleColumn"> id "1. " <a href="/title/tt0111161/?pf_rd_m=A2FGELUUNOQJNL&pf_rd_p=1a264172 -ae11-42e4-8ef7...MRSGF6ZQ7NCVC9V&pf_rd_s=center-1&pf_rd_t=15506&pf_ rd_i=top&ref_=chttp_tt_1″ title="Frank Darabont (dir.), Tim Robbin s, Morgan Freeman" The Shawshank Redemption</a> <span class="secondaryInfo">(1994)</span> </td> ▼<td class="ratingColumn imdbRating"> <strong title="9.2 based on 2,637,133 user ratings" 9.24/strong> </td> ►<td class="ratingColumn">...</td> ►<td class="watchlistColumn">...</td> user </tr> year name rating Create a DataFrame called q3df to store the complete data. There should be 250 movies. In four separate cells, execute the following codes one by one and show the outputs. q3df.shape q3df.head() q3df [100:106] q3df.tail() In your output, values in the rating and user columns may look different from the example as they update overtime. Requirement: use only regular expressions for data extraction (do not use BeautifulSoup 4). NOTE: CANNOT USE BEAUTIFUL SOUP!
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY