We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8014bc1 commit 6ad5467Copy full SHA for 6ad5467
scripts/Lyrics Scraper/LyricsScraper.py
@@ -13,9 +13,10 @@ def get_lyrics(artist, song):
13
'div', class_='col-xs-12 col-lg-8 text-center').find_all('div')[5].text
14
print(lyrics)
15
except AttributeError:
16
- 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)!")
17
18
19
-artist = input("Enter the name of the artist/band: ").strip().lower()
20
-song = input("Enter the name of the song: ").strip().lower()
+artist = input(
+ "Enter the name of the artist/band: ").strip().lower().replace(' ', '')
21
+song = input("Enter the name of the song: ").strip().lower().replace(' ', '')
22
get_lyrics(artist, song)
0 commit comments