Skip to content

rshetty22/tswift

 
 

Repository files navigation

tswift

This repo is actually not directly related to Taylor Swift. It's just a simple Python API for getting lyrics from MetroLyrics. Here is how easy it is:

from tswift import Artist
import random

tswift = Artist('Taylor Swift')
song = random.choice(tswift.songs)
print(song.format())

Setup

This package depends on lxml and requests. These should be installed when you install this package from pip:

pip install tswift

After installing, you can also print a random Taylor Swift song lyric with the command:

python -m tswift

Happy lyric hunting!

About

MetroLyrics API for Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%