Skip to content

Commit

Permalink
Included lyrics example
Browse files Browse the repository at this point in the history
  • Loading branch information
jjoeldaniel committed Jun 26, 2023
1 parent a410786 commit 018918c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from geniusdotpy.genius_builder import GeniusBuilder
from geniusdotpy.track import Track


def main():
Expand All @@ -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__":
Expand Down

0 comments on commit 018918c

Please sign in to comment.