Get song information from AZLyrics.
A Python API for AZLyrics, with a CLI front-end, supporting searching and getting lyrics. The CLI allows search results to be selected interactively.
Songs can be exported to XML using azlyrics_api.export
, which accepts a callable argument used for preprocessing.
OpenSong's XML formatting is used by default.
Install the package using pip
:
pip install .
Get lyrics for a song:
azlyrics-cli <title> <artist> [--xml export.xml]
Search for a song and select interactively:
azlyrics-cli <query> [--xml export.xml]
- beautifulsoup4 - Web scraping
- lxml - XML formatting
- requests - HTTP requests
azlyrics-api
is licensed under the MIT Licence for everyone to use, modify and share freely.
This program is distributed in the hope that it will be useful, but without any warranty.
If you found this project useful, please consider donating. Any amount is greatly appreciated! Thank you 😃
My bitcoin address is: bc1q5aygkqypxuw7cjg062tnh56sd0mxt0zd5md536