Spaces:
Sleeping
Sleeping
kmaurinjones
commited on
Commit
•
432a61a
1
Parent(s):
64b8b13
Update songscope.py
Browse files- songscope.py +10 -7
songscope.py
CHANGED
@@ -453,13 +453,16 @@ def get_all_data(artist_name: str, song_titles: list = None,
|
|
453 |
|
454 |
for title, mdata in artist_data.items():
|
455 |
start = time.time()
|
456 |
-
try:
|
457 |
-
|
458 |
-
|
459 |
-
except: (UnboundLocalError, TypeError, AttributeError)
|
460 |
-
|
461 |
-
|
462 |
-
|
|
|
|
|
|
|
463 |
# as to not get banned
|
464 |
random_delay(min_val = delay[0], max_val = delay[1], print_delay = False)
|
465 |
|
|
|
453 |
|
454 |
for title, mdata in artist_data.items():
|
455 |
start = time.time()
|
456 |
+
# try:
|
457 |
+
# lyrics = follow_lyrics(lyric_url = artist_data[title]['url'])
|
458 |
+
# artist_data[title]['lyrics'] = sectionize(lyrics)
|
459 |
+
# except: (UnboundLocalError, TypeError, AttributeError)
|
460 |
+
# print(f"\tCouldn't find lyrics to {title}. Moving to next song.")
|
461 |
+
# pass
|
462 |
+
|
463 |
+
lyrics = follow_lyrics(lyric_url = artist_data[title]['url'])
|
464 |
+
artist_data[title]['lyrics'] = sectionize(lyrics)
|
465 |
+
|
466 |
# as to not get banned
|
467 |
random_delay(min_val = delay[0], max_val = delay[1], print_delay = False)
|
468 |
|