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'
- Image URL
- Status SVG
- Song name
- Artist name
- Last week position
- Peak position
- Weeks on chart
-
Navigate to the directory with the
.csv
file and.html
file. -
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
- View the page in a browser by visiting:
http://localhost:8000/
- 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.