> python3 -m pip install tiktok_downloader
> python3 -m pip install git+https://github.com/krypton-byte/tiktok-downloader
> >> from tiktok_downloader import ssstik
> >> ssstik ().get_media ("url" )
[< [type :video ]> , < [type :music ]> ]
>> > ssstik ().get_media ("url" )[0 ].download ("result.mp4" )
> >> from tiktok_downloader import snaptik
> >> snaptik ("url" ).get_media ()
[< [type :video ]> , < [type :video ]> ]
>> > snaptik ("url" ).get_media ()[0 ].download ("result.mp4" )
> >> from tiktok_downloader import info_video
> >> info = info_video ("url" )
> >> info .caption
> >> info .created
> >> info .id
> >> info .music
> >> info .username
> >> info .created
> >> info .signature
> >> info .verified
ssstik
$ python3 -m tiktok_downloader --url=https://www.tiktok.com/@xxxx/video/xxxx --ssstik 2> /dev/null
[
{
" type" : " video" ,
" url" : " https://ssstik.io/fe67718b?url=xxxxxx"
},
{
" type" : " video" ,
" url" : " https://v16m.tiktokcdn.com/xxxxxxxx"
},
{
" type" : " music" ,
" url" : " https://sf16-ies-music-sg.tiktokcdn.com/obj/tos-alisg-ve-xxxx/xxxxxx"
}
]
snaptik
$ python3 -m tiktok_downloader --url=https://www.tiktok.com/@xxxx/video/xxxx --snaptik 2> /dev/null
[
{
" type" : " video" ,
" url" : " https://tikcdn.net/file/xxxxxxxx.mp4"
},
{
" type" : " video" ,
" url" : " https://snapsave.info/dl.php?token=xxxxxxxxxxxxxxx"
}
]
post info
$ python3 -m tiktok_downloader --url=https://www.tiktok.com/@xxxx/video/xxxx --info
{
" account" : {
" username" : " " ,
" nickname" : " " ,
" signatur" : " " ,
" create" : 0,
" verified" : true
},
" music" : " " ,
" caption" : " " ,
" create" : 0,
" url" : " " ,
" id" : " "
}
$ python3 -m tiktok_downloader --host=0.0.0.0 --port=8000 --server
Request API using curl & wget
$ wget -O result.mp4 $( curl -sG http://127.0.0.1:8000/snaptik -d url=https://vm.tiktok.com/xxxxxxxx/| jq .[0].url -r)
you can direct Download using browser or curl
http://127.0.0.1:8000/snaptik?url=https://vm.tiktok.com/xxxxxxxx/&type=embed