Skip to content

Commit 2b35f40

Browse files
authored
Merge pull request #187 from tamland/186-add-for_you-page
186 add for you page
2 parents 42db679 + bc9eefe commit 2b35f40

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

tests/test_page.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ def test_get_explore_items(session):
4848
assert next(iterator).title == "Blues"
4949

5050

51+
def test_for_you(session):
52+
for_you = session.for_you()
53+
assert for_you
54+
55+
5156
def test_show_more(session):
5257
videos = session.videos()
5358
originals = next(

tidalapi/session.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,14 @@ def explore(self):
648648
"""
649649
return self.page.get("pages/explore")
650650

651+
def for_you(self):
652+
"""
653+
Retrieves the For You page, as seen on https://listen.tidal.com/view/pages/for_you
654+
655+
:return: A :class:`.Page` object with the :class:`.PageCategory` list from the explore page
656+
"""
657+
return self.page.get("pages/for_you")
658+
651659
def videos(self):
652660
"""
653661
Retrieves the :class:`Videos<.Video>` page, as seen on https://listen.tidal.com/view/pages/videos

0 commit comments

Comments
 (0)