Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.34 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.34 KB

Billboard Hot 100 Web Scraper

Billboard Logo

Python application which web scrapes Billboard's Hot 100 Chart using BeautifulSoup.

The web scraped song informations are then stored to a .csv file named billboard_hot_100.csv.

filename = 'billboard_hot_100.csv'

Generated .csv headers:

  • Image URL
  • Status SVG
  • Song name
  • Artist name
  • Last week position
  • Peak position
  • Weeks on chart

Local HTTP server setup:

  1. Navigate to the directory with the .csv file and .html file.

  2. Start a simple local HTTP server:

python -m http.server 8000

If you're having caching issues (i.e., the data isn't updating) run:

python start_server.py
  1. View the page in a browser by visiting:
http://localhost:8000/

Notes:

  • When you open an HTML file directly (e.g., by double-clicking), it uses the file:// protocol, which restricts access to local files for security reasons.
  • Running a local server allows you to access your files via http://, which the browser allows to fetch other files in the same directory.
  • Using the local server is optional. It is just more convenient as you don't have to upload the file manually everytime you refresh.