Skip to content

Commit 6ad5467

Browse files
committed
Add small fix
1 parent 8014bc1 commit 6ad5467

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/Lyrics Scraper/LyricsScraper.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ def get_lyrics(artist, song):
1313
'div', class_='col-xs-12 col-lg-8 text-center').find_all('div')[5].text
1414
print(lyrics)
1515
except AttributeError:
16-
print("Please make sure you have entered the correct name!")
16+
print("Please make sure you have entered the correct name(i.e. Don't add spaces between words)!")
1717

1818

19-
artist = input("Enter the name of the artist/band: ").strip().lower()
20-
song = input("Enter the name of the song: ").strip().lower()
19+
artist = input(
20+
"Enter the name of the artist/band: ").strip().lower().replace(' ', '')
21+
song = input("Enter the name of the song: ").strip().lower().replace(' ', '')
2122
get_lyrics(artist, song)

0 commit comments

Comments
 (0)