diff options
author | nil0j <nil.jimeno@estudiant.fjaverianas.com> | 2024-09-27 17:27:02 +0200 |
---|---|---|
committer | nil0j <nil.jimeno@estudiant.fjaverianas.com> | 2024-09-27 17:27:02 +0200 |
commit | 4328dd17bfcd4c33a77c4405d52c3660a6c62bf5 (patch) | |
tree | 62b48c5088fac13b93a3bcdaa85f4594601cf3fe /scrap/api.py | |
parent | db58cb58b5d5612ec2aa347d0f8531b26ab2e7f3 (diff) |
update
Diffstat (limited to 'scrap/api.py')
-rw-r--r-- | scrap/api.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/scrap/api.py b/scrap/api.py deleted file mode 100644 index 5cc24d3..0000000 --- a/scrap/api.py +++ /dev/null @@ -1,21 +0,0 @@ -import lyricsgenius -import parser -import os - - -genius = lyricsgenius.Genius( - "0uSA9UFGsiO2WozVmbWPhyhOoVmUNuM3PXRt9rvWhptHBMgSO5CZBxGUMkwet5mv" -) - - -def download_albums(albums): - [get_album_json(artist[0], album) - for artist in albums for album in artist[1]] - - -def get_album_json(artist_name, album_name): - if os.path.isfile(parser.getLink(album_name)): - return - - album = genius.search_album(album_name, artist_name) - album.save_lyrics() |