Skip to content

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

License

Notifications You must be signed in to change notification settings

jsubroto/billboard-hot-100-web-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published