Scrobble#

Constructor#

Scrobble(timestamp, track, artist[, album])

Class representing a single scrobble/listen.

Attributes#

Scrobble.timestamp

Timestamp at which the track was scrobbled.

Scrobble.track

Name/title of the scrobbled track.

Scrobble.artist

Artist name for the scrobbled track.

Scrobble.album

(Optional) Album name for the scrobbled track.

Conversion / IO / Serialisation#

Scrobble.from_dict(data)

Construct a Scrobble from a dictionary.

Scrobble.to_dict()

Returns the canonical dict representation of a Scrobble.

Scrobble.to_dataframe()

Returns a canonical pandas DataFrame representation of a Scrobble.