Tiktokapi

Latest version: v6.3.0

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

Scan your dependencies

Page 3 of 20

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)

4.1.0

[All tests currently passing](https://github.com/davidteather/TikTok-Api/runs/4491934033)

Upgrade with `pip install TikTokApi --upgrade`

**REMOVED**
* discover_hashtags,discover_music (can be replicated with the "search_for" methods giving it an empty string as query)
* get_suggested & crawlers methods (think the endpoint is only available for desktop and the package uses IOS)

**All Changes**
- Removed useless node dependency in tests
- update get_trending.py to reflect new naming change
- allow for mobile shortened URLs
- add unit description on request_delay
- removed host&authority to bypass 403 error
- fix by_trending
- added more tiktok exception message logging

Feel free to connect on [LinkedIn](https://www.linkedin.com/in/davidteather/), I'd love to hear about how you're using the package!
Feel free to [sponsor me on GitHub](https://github.com/sponsors/davidteather) it helps me maintain this :)

Thank you for using this package,
David

4.0.4.2

4.0.4.1

4.0.4

Fixes 709

Page 3 of 20

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.