-
-
-
- Ensemble Data is the leading API provider for scraping all the major Social Media.
We provide 100+ Million posts / day to the largest Marketing and Social listening platforms.
-
-
## Table of Contents
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,
}
diff --git a/TikTokApi/api/video.py b/TikTokApi/api/video.py
index 9cb1f9c8..552e26c8 100644
--- a/TikTokApi/api/video.py
+++ b/TikTokApi/api/video.py
@@ -218,7 +218,7 @@ def __extract_from_data(self) -> None:
self.create_time = datetime.fromtimestamp(timestamp)
self.stats = data["stats"]
- author = data["author"]
+ author = data.get("author")
if isinstance(author, str):
self.author = self.parent.user(username=author)
else:
diff --git a/setup.py b/setup.py
index 7156eefe..e1722139 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@
setuptools.setup(
name="TikTokApi",
packages=setuptools.find_packages(),
- version="6.2.0",
+ version="6.2.1",
license="MIT",
description="The Unofficial TikTok API Wrapper in Python 3.",
author="David Teather",