diff --git a/README.rst b/README.rst index 257aa5a..9270a31 100644 --- a/README.rst +++ b/README.rst @@ -11,10 +11,6 @@ Unofficial Python API for TIDAL music streaming service. Requires Python 3.9 or higher. -0.7.x Migration guide ---------------------- -The 0.7.x rewrite is now complete, see the `migration guide `_ for dealing with it - Installation ------------ @@ -29,27 +25,7 @@ Install from `PyPI `_ using ``pip``: Example usage ------------- -.. code-block:: python - - import tidalapi - - session = tidalapi.Session() - # Will run until you visit the printed url and link your account - session.login_oauth_simple() - # Override the required playback quality, if necessary - # Note: Set the quality according to your subscription. - # Normal: Quality.low_320k - # HiFi: Quality.high_lossless - # HiFi+ Quality.hi_res_lossless - session.audio_quality = Quality.low_320k - - album = session.album(66236918) - tracks = album.tracks() - for track in tracks: - print(track.name) - for artist in track.artists: - print(' by: ', artist.name) - +For examples on how to use the api, see the `examples` directory. Documentation ------------- diff --git a/examples/simple.py b/examples/simple.py new file mode 100644 index 0000000..5f724c9 --- /dev/null +++ b/examples/simple.py @@ -0,0 +1,19 @@ +import tidalapi +from tidalapi import Quality + +session = tidalapi.Session() +# Will run until you visit the printed url and link your account +session.login_oauth_simple() +# Override the required playback quality, if necessary +# Note: Set the quality according to your subscription. +# Normal: Quality.low_320k +# HiFi: Quality.high_lossless +# HiFi+ Quality.hi_res_lossless +session.audio_quality = Quality.low_320k + +album = session.album(66236918) +tracks = album.tracks() +for track in tracks: + print(track.name) + for artist in track.artists: + print(' by: ', artist.name) \ No newline at end of file