Simple Python API to access billboard charts
Clone the repo and copy the billboard.py file to the folder you want to access it in.
git clone https://github.com/deepjyoti30/billboardpy
For any chart the Billboard
class is used
>>> import billboard
>>> Chart = billboard.Billboard("youtube")
>>> print(Chart.chart[0].title, 'by', Chart.chart[0].artist)
Thank U, Next by Ariana Grande
The name of the playlist from the webpage can be accessed in the following way
>>> Chart.chart_name
'YOUTUBE'
Every song has three accessible properties
title
- Title of the song
artist
- Name of the artist
rank
- Current rank of the song
Feel free to ask for a feature by tagging the issue as Feature Request.