Releases: davidteather/TikTok-Api
V3.9.7 - Add "x-secsdk-csrf-token" header and update some tests
Seems like the discover methods are no longer working as frequently if at all with the use_test_endpoints=True
, look at the diff for this pr (#603 ) specifically in the test files to see the methods that seem to be affected the most.
Also generate_did has been moved to a static function.
Feel free to connect with me on LinkedIn
(also the tests are passing on my machine just not GitHub actions because they're not on residential IPs some of the errors might be transient)
V3.9.6
V3.9.5 - Some general fixes
Things were fixed 😄
- discover methods fixed
- byUsername & other HTML requests fixed
V3.9.4 - Improved Downloading Video Handling
Changes
- Updated documentation for custom_did
- custom_did is maintained at the instance level if set
- generate_static_did added as a parameter to the TikTok constructor. If set to True it will generate and maintain a static custom_did so you don't have to do it yourself.
- Added generate_did method which returns a valid did which you can use however you want.
V3.9.3 - The documentation and naming scheme update
This package has spent too long having its documentation listed in the readme of all places. I'm excited to announce that I've added a new auto-documenting part to the codebase. Hopefully, that makes this package that much more easy to deal with
Naming Scheme
- All the methods have moved from camelCase to snake_case as it's annoyed me for a bit
- BUT don't worry it's backward compatible and I intend to keep it that way for at least awhile
The last time I did this it was super effective so please connect with me on LinkedIn if you're reading this. I'm just a 1st year in college and anything helps, plus I spent like 3.5 hours on this update on a Sunday night.
V3.9.2 - Update for TikTok Endpoint change
Changes
- TikTok updated their endpoints and some JSON that it returned
- Some maxCursor and minCursor have been deprecated due to it being changed on TikTok's end, so you may need to change these to restore functionality
If you're reading this you really should connect with me on LinkedIn I'm just a student who needs more connections. Also feel free to sponsor me
V3.9.1 - Update for playwright 1.9.0
If you're reading this you really should connect with me on LinkedIn I'm just a student who needs more connections.
V3.9.0 - Fix Playwright running in multitudes
See #464
Also the tests aren't passing but they should as they passed on the PR TikTok is just hitting them with captchas :(
V3.8.9 - Fix No Watermark Method
The main update is the fix of the no watermark method.
The naming scheme for that method has changed it is now get_video_no_watermark(self, video_url, return_bytes=1, **kwargs)
The other change is the introduction of get_tiktok_by_html(self, url, **kwargs)
this was added a helper method of get_video_no_watermark but it extracts the information from the HTML of a TikTok rather than API calls
To download a video here's example code
from TikTokApi import TikTokApi
api = TikTokApi.get_instance(use_test_endpoints=True)
data = api.get_video_no_watermark('https://www.tiktok.com/@gordonramsayofficial/video/6910298199769009414?lang=en')
with open("test.mp4", "wb") as out:
out.write(data)
V3.8.8 - Fix itemList Error
TikTok changed their structure of their API requests leading to a key error that should be fixed now.
And TikTok's Desktop Site is back! 🎊 kinda annoying while it was down