Hi John,
Two questions please.
a) The snippets (Link) suggest that I may be able to retrieve all songs that match the search parameters.
However, my "songs" object that comes back does not seem to have the "hits" that the snippet above references?
b) The below call where I look for artist="Madonna" title="Santa" returns Song(title=Santa Madonna, artist=Fedez). That seems off. Any ideas what's going on, could this be a bug?
Adding the code & the output I get for reference:
import os
from dotenv import load_dotenv
from lyricsgenius import Genius
load_dotenv()
artist = "Madonna"
title = "Santa"
token = os.environ.get("GENIUS_ACCESS_TOKEN")
_genius = Genius(
token,
verbose=False,
skip_non_songs=True,
retries=1,
)
songs = _genius.search_song(title=title, artist=artist, get_full_info=True)

Hi John,
Two questions please.
a) The snippets (Link) suggest that I may be able to retrieve all songs that match the search parameters.
However, my "songs" object that comes back does not seem to have the "hits" that the snippet above references?
b) The below call where I look for artist="Madonna" title="Santa" returns Song(title=Santa Madonna, artist=Fedez). That seems off. Any ideas what's going on, could this be a bug?
Adding the code & the output I get for reference: