A simple command line program that displays songs in the current UK Top 40 Charts This also displays their YouTube links for convenience.
pip install top40
If you require to view the songs and their YouTube links:
Obtain a developer key from Google This is required for accessing the YouTube API.
export DEVELOPER_KEY="Your developer key"
There is just one basic command to display the songs:
top40 display [OPTIONS]
`top40 display` No arguments given. Displays the top 10 songs in the Charts. `top40 display -n 30` This displays the top 30 songs in the chart `top40 display -n 30 --links` This displays the top 30 songs in the chart and their YouTube links
-h, --help print this help text and exit -n, --num Specify the number of songs to display. Maximum of 40