Releases: davidteather/TikTok-Api
V6.0.1 - Fix Installation Error
Fixed an error with pip install
Should be fixed now
pip install TikTokApi --upgrade
V6.0.0 - Async, Improve Maintainability, Give More User Options, Better Docs
Changes
- TikTokAPI now manages a fleet of playwright sessions to sign & make requests
- should be easier to circumvent bot navigation if requests are make by headful browser
- Fully async, will require code changes check examples/tests/readme if you need help
- Better docs (please make PRs if you notice any issues)
Deprecated
- Drop support for Python 3.7 & 3.8
- 3.7 - playwright supports 3.8+
- 3.8 - Our type hints require 3.9+
Update with
pip install --upgrade TikTokApi
Tests
tests/test_comments.py . [ 5%]
tests/test_hashtag.py .... [ 29%]
tests/test_integration.py . [ 35%]
tests/test_search.py . [ 41%]
tests/test_sound.py .. [ 52%]
tests/test_trending.py . [ 58%]
tests/test_user.py ..s [ 76%]
tests/test_video.py ..s. [100%]
=================================== 15 passed, 2 skipped in 68.64s (0:01:08) ===================================
Fully pass for all implemented methods 😎 feels good to be back
We're close to 1 million downloads, that's absurd glad you've all enjoyed the project 🤠
V5.2.2
V5.2.1 - Fix #910
5.2.1 - Bump version (I forgot on last PR) (#913) * Fixes #910 * I forgot to bump version
V5.2.0 - Add comments & A Few Fixes
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
V5.1.1 - Update Sponsor Links on Readme
Nothing in code base changed, need to re-generate the pypi readme.
V5.1.0 - Memory Improvement, Jupyter Support, Hierarchical Exceptions
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
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 ...
V5.0.0 - Higher Level Object Modeling
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)
If this broke your code please pin your dependency versions
V5 Example Usage
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)
V4.1.0 - General Fixes
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, I'd love to hear about how you're using the package!
Feel free to sponsor me on GitHub it helps me maintain this :)
Thank you for using this package,
David
V4.0.4.2 - Add DOI Badge
Merge pull request #767 from davidteather/add-doi-badge V4.0.4.2 - Add DOI Badge