github davidteather/TikTok-Api V3.5.8
V3.5.8 - Fix Download Issue

latest releases: V6.3.0, V6.2.2, V6.2.1...
3 years ago

Found a solution, most of the get_video_by methods won't currently work as I'm kinda tired right now and there's probably better logic to do this, but in the meantime, the following script will work when the package is updated (probably 30 minutes)

from TikTokApi import TikTokApi
api = TikTokApi()
tiktok_url = "https://www.tiktok.com/@kaweee1234/video/6883470508726258949"
video_bytes = api.get_Video_By_Url(tiktok_url)

It might be a while before fixing the other methods so use this one for now. If you have a TikTok object you can construct the URL yourself using the schema something like "https://www.tiktok.com/@{}/video/{}?lang=en".format(tiktok['author']['uniqueId'], tiktok['id']) but the use of that depends on what the schema you're getting looks like.

Consider using this API as a service it supports this project here

Consider sponsoring me on github here or donating on paypal here

Connect with me on LinkedIn

Update with the following command

pip install TikTokApi --upgrade

Don't miss a new TikTok-Api release

NewReleases is sending notifications on new releases.