Skip to content

Commit

Permalink
Update hashtag.py
Browse files Browse the repository at this point in the history
TikTok appears to have limited the number of posts that can be returned for a single hashtag search to 35 (e.g. bellingcat/tiktok-hashtag-analysis#28).

Similar to how the `User.liked` method works, I set the batch size to 35 videos per request.
  • Loading branch information
trislee authored Mar 11, 2024
1 parent 7386b2b commit 447adf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TikTokApi/api/hashtag.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async def videos(self, count=30, cursor=0, **kwargs) -> Iterator[Video]:
while found < count:
params = {
"challengeID": self.id,
"count": count,
"count": 35,
"cursor": cursor,
}

Expand Down

0 comments on commit 447adf1

Please sign in to comment.