Add small fix

This commit is contained in:
nabroleonx 2022-10-14 23:59:16 +03:00
parent 8014bc1d36
commit 6ad546711e

View File

@ -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)