From 018918c9bce52978df221f18e3b42b8d8a3b5661 Mon Sep 17 00:00:00 2001 From: jjoeldaniel Date: Mon, 26 Jun 2023 00:53:39 -0700 Subject: [PATCH] Included lyrics example --- example.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example.py b/example.py index 2cdc186..ee23336 100644 --- a/example.py +++ b/example.py @@ -1,4 +1,5 @@ from geniusdotpy.genius_builder import GeniusBuilder +from geniusdotpy.track import Track def main(): @@ -20,8 +21,9 @@ def main(): print(genius.search("Beat It")[0]) # Search tracks by artist - tracks = genius.search_track_by_artist(artist_id=16775) + tracks: list[Track] = genius.search_track_by_artist(artist_id=16775) print(tracks[0]) + print(tracks[0].lyrics) if __name__ == "__main__":