The top 100 songs for each year are available from Wikipedia at: https://en.wikipedia.org/wiki/Billboard_Year-End_Hot_100_singles_of_ where is a four-digit year—for example, 2020. a) Write a Python program that accesses the data from the top songs (#, song title, artist) from Wikipedia and writes these data to a .csv file. b) Enhance your program from part (a) to read pages from a range of years (by accessing each page corresponding to each year), and save the data to one .csv file. In addition to #, title, and artist, include the year in the .csv file.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section: Chapter Questions
Problem 9PP: (Inventory) Create an ASCII file with the following data, or use the shipped.dat file available on...
icon
Related questions
Question

The top 100 songs for each year are available from Wikipedia at:

https://en.wikipedia.org/wiki/Billboard_Year-End_Hot_100_singles_of_

where is a four-digit year—for example, 2020.

a) Write a Python program that accesses the data from the top songs (#, song title, artist) from Wikipedia and writes these data to a .csv file.

b) Enhance your program from part (a) to read pages from a range of years (by accessing each page corresponding to each year), and save the data to one .csv file. In addition to #, title, and artist, include the year in the .csv file.

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT