johnwmillr / LyricsGenius

Download song lyrics and metadata from Genius.com 🎶🎤
http://www.johnwmillr.com/scraping-genius-lyrics/
MIT License
892 stars 158 forks source link

Artist is missing from Song.to_dict #166

Closed johnwmillr closed 3 years ago

johnwmillr commented 3 years ago

https://github.com/johnwmillr/LyricsGenius/blob/a0595147727a9e1932b0fec0f8529b9956bdbcf1/lyricsgenius/song.py#L162-L166

artist should be exported along with the other Song fields.

allerter commented 3 years ago

In #162, all we would need to do is this:

def to_dict(self):
    body = super().to_dict()
    body['artist'] = self.artist
    body['lyrics'] = self.lyrics
    return body
johnwmillr commented 3 years ago

Perfect!