40 lines
1.0 KiB
Python
40 lines
1.0 KiB
Python
import azl
|
|
import letras
|
|
|
|
|
|
while True:
|
|
web = ''
|
|
val = ''
|
|
artist = input('Name of the artist/band: ')
|
|
title = input('Name of the song: ')
|
|
web = input('Where would u like to search? (a for azl/l for letras): ')
|
|
if web == 'a':
|
|
song_url = azl.getLink(artist, title)
|
|
un_lyr = azl.getLyrics(song_url)
|
|
fin = azl.parsero(un_lyr)
|
|
print(fin)
|
|
elif web == 'l':
|
|
song_url = letras.getLink(artist, title)
|
|
un_lyr = letras.getLyrics(song_url)
|
|
fin = letras.parsero(un_lyr)
|
|
print(fin)
|
|
else:
|
|
print("I didn't give u that option dude")
|
|
continue
|
|
while True:
|
|
res = input("What's the move? (s to search for another song/q to quit): ")
|
|
if res == 's' or res == 'q':
|
|
val = res
|
|
break
|
|
else:
|
|
print("what's wrong w u mate?")
|
|
continue
|
|
if val == 's':
|
|
continue
|
|
elif val == 'q':
|
|
print('see u')
|
|
break
|
|
else:
|
|
print('SOMETHING WENT HORRIBLY WRONG GOTTA GO')
|
|
break
|