Skip to content

Commit

Permalink
🎊 V4.1.0 🎊 (#772)
Browse files Browse the repository at this point in the history
* Remove useless line

* Update get_trending.py

* update to by_treding on example file

* Allow for shortened and mobile links (incase the mobile ones didn't work)

* add time unit in description to request_delay

* fix get_trending (trending -> by_trending)

* Removed Host and Authority from the requests to prefent the 403 error on cloudfront

* Update tiktok.py

* V4.1.0


Co-authored-by: LE <[email protected]>
Co-authored-by: Dylan Caponi <[email protected]>
Co-authored-by: capital terefe <[email protected]>
Co-authored-by: andmagdo <[email protected]>
Co-authored-by: Adrian Antkowiak <[email protected]>
Co-authored-by: BeatRoy <[email protected]>
Co-authored-by: Isaac K <[email protected]>
Co-authored-by: davidteather <[email protected]>
  • Loading branch information
9 people authored Dec 11, 2021
1 parent 64db63b commit a356324
Show file tree
Hide file tree
Showing 17 changed files with 704 additions and 1,535 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/package-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
python-version: [3.7, 3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: microsoft/playwright-github-action@v1
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand All @@ -37,4 +36,4 @@ jobs:
env:
PROXY: ${{ secrets.PROXY }}
verifyFp: ${{ secrets.verifyFp }}
run: pytest tests
run: pytest tests
4 changes: 3 additions & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ authors:
given-names: "David"
orcid: "https://orcid.org/0000-0002-9467-4676"
title: "TikTokAPI"
url: "https://github.com/davidteather/tiktok-api"
url: "https://github.com/davidteather/tiktok-api"
version: 4.1.0
date-released: 2021-12-11
7 changes: 7 additions & 0 deletions TikTokApi/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ def __init__(
super().__init__(self.message)


# TODO: Update this so children are all subclasses of the generic error.
class GenericTikTokError(Exception):
def __init__(self, message):
self.message = message
super().__init__(self.message)


class TikTokNotFoundError(Exception):
def __init__(self, message="The requested object does not exists"):
self.message = message
Expand Down
Loading

0 comments on commit a356324

Please sign in to comment.