tamland / python-tidal

Python API for TIDAL music streaming service
GNU Lesser General Public License v3.0
406 stars 110 forks source link

tidalapi.models.Album object at 0x... #59

Closed dennisklad closed 2 years ago

dennisklad commented 3 years ago

Hi, I am trying to import all my favorite albums into an excel. For now I have this:

import tidalapi

session = tidalapi.Session()

session.login('@', 'pass')

favorites = tidalapi.Favorites(session, session.user.id)

albums = favorites.albums()
for alb in albums:
    print(alb)

The output is the following:

<tidalapi.models.Album object at 0x7f4a5659edf0>
<tidalapi.models.Album object at 0x7f4a5659ef10>
<tidalapi.models.Album object at 0x7f4a565a1070>

How can I output the album name as a string?

morguldir commented 3 years ago

Use alb.name

dennisklad commented 3 years ago

wow that was easy