Skip to content

Commit 1c6aed1

Browse files
davidteatherlysmm203Ben3056ben.wisnettrislee
authored
V6.2.1 (#1113)
* remove sponsors * Fix count parameter for hashtag, user, and trending classes (#1108) * Fix trending count (#1103) Co-authored-by: ben.wisnet <[email protected]> * Made author field optional (#1099) Fixed issue where error is raised for some videos that are missing the "author" field * bump version --------- Co-authored-by: lysmm203 <[email protected]> Co-authored-by: Ben3056 <[email protected]> Co-authored-by: ben.wisnet <[email protected]> Co-authored-by: Tristan Lee <[email protected]>
1 parent 4f2c13f commit 1c6aed1

File tree

8 files changed

+8
-16
lines changed

8 files changed

+8
-16
lines changed

.sphinx/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
project = "TikTokAPI"
1717
copyright = "2023, David Teather"
1818
author = "David Teather"
19-
release = "v6.2.0"
19+
release = "v6.2.1"
2020

2121
# -- General configuration ---------------------------------------------------
2222
# https://www.sphinx-doc.org/en/main/usage/configuration.html#general-configuration

CITATION.cff

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ authors:
55
orcid: "https://orcid.org/0000-0002-9467-4676"
66
title: "TikTokAPI"
77
url: "https://github.com/davidteather/tiktok-api"
8-
version: 6.2.0
9-
date-released: 2023-11-27
8+
version: 6.2.1
9+
date-released: 2024-02-09

README.md

-8
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ These sponsors have paid to be placed here and beyond that I do not have any aff
1717
<b>TikAPI</b> is a paid TikTok API service providing a full out-of-the-box solution, making life easier for developers — trusted by 500+ companies.
1818
</div>
1919
</a>
20-
<br>
21-
<a href="https://www.ensembledata.com/?utm_source=github&utm_medium=githubpage&utm_campaign=david_thea_github&utm_id=david_thea_github" target="_blank">
22-
<img src="https://raw.githubusercontent.com/davidteather/TikTok-Api/main/imgs/EnsembleData.png" width="100" alt="Ensemble Data">
23-
<b></b>
24-
<div>
25-
<b>Ensemble Data</b> is the leading API provider for scraping all the major Social Media. <br> We provide 100+ Million posts / day to the largest Marketing and Social listening platforms.
26-
</div>
27-
</a>
2820
</div>
2921

3022
## Table of Contents

TikTokApi/api/hashtag.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async def videos(self, count=30, cursor=0, **kwargs) -> Iterator[Video]:
111111
while found < count:
112112
params = {
113113
"challengeID": self.id,
114-
"count": 30,
114+
"count": count,
115115
"cursor": cursor,
116116
}
117117

TikTokApi/api/trending.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def videos(count=30, **kwargs) -> Iterator[Video]:
3737
while found < count:
3838
params = {
3939
"from_page": "fyp",
40-
"count": 30,
40+
"count": count,
4141
}
4242

4343
resp = await Trending.parent.make_request(

TikTokApi/api/user.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async def videos(self, count=30, cursor=0, **kwargs) -> Iterator[Video]:
115115
while found < count:
116116
params = {
117117
"secUid": self.sec_uid,
118-
"count": 35,
118+
"count": count,
119119
"cursor": cursor,
120120
}
121121

TikTokApi/api/video.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def __extract_from_data(self) -> None:
218218
self.create_time = datetime.fromtimestamp(timestamp)
219219
self.stats = data["stats"]
220220

221-
author = data["author"]
221+
author = data.get("author")
222222
if isinstance(author, str):
223223
self.author = self.parent.user(username=author)
224224
else:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
setuptools.setup(
99
name="TikTokApi",
1010
packages=setuptools.find_packages(),
11-
version="6.2.0",
11+
version="6.2.1",
1212
license="MIT",
1313
description="The Unofficial TikTok API Wrapper in Python 3.",
1414
author="David Teather",

0 commit comments

Comments
 (0)