From 04431fb66e39ec84735e01da13d8c2ac42951096 Mon Sep 17 00:00:00 2001 From: lysmm203 <65572921+lysmm203@users.noreply.github.com> Date: Sat, 10 Feb 2024 00:32:08 +0900 Subject: [PATCH] Fix count parameter for hashtag, user, and trending classes (#1108) --- TikTokApi/api/hashtag.py | 2 +- TikTokApi/api/trending.py | 2 +- TikTokApi/api/user.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TikTokApi/api/hashtag.py b/TikTokApi/api/hashtag.py index af81cca3..4bbe5709 100644 --- a/TikTokApi/api/hashtag.py +++ b/TikTokApi/api/hashtag.py @@ -111,7 +111,7 @@ async def videos(self, count=30, cursor=0, **kwargs) -> Iterator[Video]: while found < count: params = { "challengeID": self.id, - "count": 30, + "count": count, "cursor": cursor, } diff --git a/TikTokApi/api/trending.py b/TikTokApi/api/trending.py index 429cf592..a164432c 100644 --- a/TikTokApi/api/trending.py +++ b/TikTokApi/api/trending.py @@ -37,7 +37,7 @@ async def videos(count=30, **kwargs) -> Iterator[Video]: while found < count: params = { "from_page": "fyp", - "count": 30, + "count": count, } resp = await Trending.parent.make_request( diff --git a/TikTokApi/api/user.py b/TikTokApi/api/user.py index 7c36388a..7c92edd9 100644 --- a/TikTokApi/api/user.py +++ b/TikTokApi/api/user.py @@ -115,7 +115,7 @@ async def videos(self, count=30, cursor=0, **kwargs) -> Iterator[Video]: while found < count: params = { "secUid": self.sec_uid, - "count": 35, + "count": count, "cursor": cursor, }