DE
deepjyoti30/billboardpy
Simple API to access Billboard Charts
billboardpy
Simple Python API to access billboard charts
Usage
Clone the repo and copy the billboard.py file to the folder you want to access it in.
git clone https://github.com/deepjyoti30/billboardpyQuickstart
For any chart the Billboard class is used
To fetch the youtube chart.
>>> import billboard
>>> Chart = billboard.Billboard("youtube")To access the songs
>>> print(Chart.chart[0].title, 'by', Chart.chart[0].artist)
Thank U, Next by Ariana GrandeThe name of the playlist from the webpage can be accessed in the following way
>>> Chart.chart_name
'YOUTUBE'Datatype
Every song has three accessible properties
title- Title of the songartist- Name of the artistrank- Current rank of the song
Dependencies
- BeautifulSoup
- Requests