diff options
author | nil0j <nil.jimeno@estudiant.fjaverianas.com> | 2024-09-21 10:17:23 +0200 |
---|---|---|
committer | nil0j <nil.jimeno@estudiant.fjaverianas.com> | 2024-09-21 10:17:23 +0200 |
commit | faa13839f898c60ff5618be6e916ad2e60958468 (patch) | |
tree | d785b9e7c66d092c0e5fbc296382289f39fea501 /scrap/main.py |
init
Diffstat (limited to 'scrap/main.py')
-rw-r--r-- | scrap/main.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scrap/main.py b/scrap/main.py new file mode 100644 index 0000000..80f4d24 --- /dev/null +++ b/scrap/main.py @@ -0,0 +1,18 @@ +import lyricsgenius +import sys + + +def getAlbum(artist_name, album_name): + genius = lyricsgenius.Genius( + "0uSA9UFGsiO2WozVmbWPhyhOoVmUNuM3PXRt9rvWhptHBMgSO5CZBxGUMkwet5mv" + ) + album = genius.search_album(artist_name, album_name) + album.save_lyrics() + + +def getJsonLyrics(link): + for key, value in data.items(): + print(key, value) + + +getJsonLyrics(sys.argv[1]) |