mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-23 20:11:10 +00:00
Add small fix
This commit is contained in:
parent
8014bc1d36
commit
6ad546711e
|
@ -13,9 +13,10 @@ def get_lyrics(artist, song):
|
||||||
'div', class_='col-xs-12 col-lg-8 text-center').find_all('div')[5].text
|
'div', class_='col-xs-12 col-lg-8 text-center').find_all('div')[5].text
|
||||||
print(lyrics)
|
print(lyrics)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
print("Please make sure you have entered the correct name!")
|
print("Please make sure you have entered the correct name(i.e. Don't add spaces between words)!")
|
||||||
|
|
||||||
|
|
||||||
artist = input("Enter the name of the artist/band: ").strip().lower()
|
artist = input(
|
||||||
song = input("Enter the name of the song: ").strip().lower()
|
"Enter the name of the artist/band: ").strip().lower().replace(' ', '')
|
||||||
|
song = input("Enter the name of the song: ").strip().lower().replace(' ', '')
|
||||||
get_lyrics(artist, song)
|
get_lyrics(artist, song)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user