random

- collection of un-sorted bollocks
git clone git://git.acid.vegas/random.git
Log | Files | Refs | Archive

lyrics.py (313B)

      1 #!/usr/bin/env python
      2 # requires: https://pypi.org/project/lyricsgenius/
      3 import sys, lyricsgenius
      4 genius = lyricsgenius.Genius('CLIENT ACCESS TOKEN') # http://genius.com/api-clients
      5 genius.verbose = False
      6 song = genius.search_song(sys.argv[2], sys.argv[1])
      7 print(song.lyrics) if song else print('no lyrics found')