Skip to content

Commit

Permalink
V6.2.1 (#1113)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
5 people authored Feb 9, 2024
1 parent 4f2c13f commit 1c6aed1
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
project = "TikTokAPI"
copyright = "2023, David Teather"
author = "David Teather"
release = "v6.2.0"
release = "v6.2.1"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/main/usage/configuration.html#general-configuration
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ authors:
orcid: "https://orcid.org/0000-0002-9467-4676"
title: "TikTokAPI"
url: "https://github.com/davidteather/tiktok-api"
version: 6.2.0
date-released: 2023-11-27
version: 6.2.1
date-released: 2024-02-09
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ These sponsors have paid to be placed here and beyond that I do not have any aff
<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.
</div>
</a>
<br>
<a href="https://www.ensembledata.com/?utm_source=github&utm_medium=githubpage&utm_campaign=david_thea_github&utm_id=david_thea_github" target="_blank">
<img src="https://raw.githubusercontent.com/davidteather/TikTok-Api/main/imgs/EnsembleData.png" width="100" alt="Ensemble Data">
<b></b>
<div>
<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.
</div>
</a>
</div>

## Table of Contents
Expand Down
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": 30,
"count": count,
"cursor": cursor,
}

Expand Down
2 changes: 1 addition & 1 deletion TikTokApi/api/trending.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion TikTokApi/api/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down
2 changes: 1 addition & 1 deletion TikTokApi/api/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1c6aed1

Please sign in to comment.