Tiktokapi

Latest version: v6.5.2

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 20

5.2.2

916

5.2.1

5.2.0

Additions
* Comments are now available on Videos


TODO
User info route is exposed, although it uses msToken heavily and not sure how to work around that at the moment


Tests passing and tests still failing

tests/test_comments.py::test_comment_page PASSED
tests/test_comments.py::test_comment_paging PASSED
tests/test_hashtag.py::test_hashtag_videos PASSED
tests/test_hashtag.py::test_hashtag_info PASSED
tests/test_hashtag.py::test_non_latin1 PASSED
tests/test_integration.py::test_video_attributes PASSED
tests/test_sound.py::test_sound_videos PASSED
tests/test_sound.py::test_sound_info PASSED
tests/test_video.py::test_video_id_from_url PASSED
tests/test_video.py::test_video_info PASSED
tests/test_video.py::test_video_bytes PASSED

tests/test_search.py::test_video FAILED
tests/test_search.py::test_users FAILED
tests/test_trending.py::test_trending_videos FAILED
tests/test_user.py::test_user_info FAILED
tests/test_user.py::test_user_videos FAILED
tests/test_user.py::test_user_liked FAILED

5.1.1

Nothing in code base changed, need to re-generate the pypi readme.

5.1.0

New Suggested Usage

with TikTokApi() as api:
pass

Although old way of `TikTokApi()` works as well.

**Exceptions**
- Now all derived from TikTokException
- Some naming changes

**Jupyter Support**
- Now able to run TikTokApi in a Jupyter notebook without extra configuration
- Not available on windows [microsoft/playwright-python 178](https://github.com/microsoft/playwright-python/issues/178)

**Improved Models**
- Throws an error if a sound has been removed
- Video has a create_time & stats attribute (should probably add stats field to other models)

**Current Problems**
- Hashtag.videos
- Trending.videos
- User.videos
- All seem to be related to new TikTok changes I made 861 to discuss

pytest output

tests\test_hashtag.py F..
tests\test_integration.py F
tests\test_search.py ..
tests\test_sound.py ..
tests\test_trending.py F
tests\test_user.py .F.
tests\test_video.py ...

5.0.0

**IMPORTANT CHANGES**
* Please read the upgrading from V4 to V5 section on the readme
* Higher level approach using objects
* Auto-parsing of attributes and responses back into objects
* Should be easier to work with (especially for new-comers not as familiar with this package)
* dropped support for selenium (sorry but it's been too annoying to main multiple browsers)

[Main PR](https://github.com/davidteather/TikTok-Api/pull/803)

**If this broke your code please pin your dependency versions**

V5 Example Usage
py
from TikTokApi import TikTokApi

verify_fp = "verify_xxx"
api = TikTokApi(custom_verify_fp=verify_fp)

tag = api.hashtag(name="funny")
print(tag.info())

for video in tag.videos():
print(video.id)
for u_vid in video.author.videos():
print(u_vid.id)

Page 3 of 20

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.