> python3 -m pip install tiktok_downloader
> python3 -m pip install git+https://github.com/krypton-byte/tiktok-downloader
Tikmate
>>> from tiktok_downloader import Tikmate
>>> d=Tikmate("url")
[<[type: "video" watermark: False]>, <[type: "video" watermark: False]>]
>>> d[0].download('video.mp4')
Snaptik
>>> from tiktok_downloader import snaptik
>>> d=snaptik('https://vt.tiktok.com/xxxxxx/')
>>> d
[<[type: "video" watermark: False]>]
>>> d[0].download('video.mp4')
Musically Down
>>> from tiktok_downloader import mdown
>>> d=mdown('https://vt.tiktok.com/xxxxxx/')
>>> d
[<[type: "video" watermark: False]>]
>>> d[0].download('video.mp4')
Tikdown
>>> from tiktok_downloader import tikdown
>>> d=tikdown('https://vt.tiktok.com/xxxxxx/')
>>> d
[<[type: "video" watermark: False]>]
>>> d[0].download('video.mp4')
TTDownloader
>>> from tiktok_downloader import ttdownloader
>>> d=ttdownloader('https://vt.tiktok.com/xxxxxx/')
>>> d
[<[type: "video" watermark: False]>]
>>> d[0].download('video.mp4')
Tikwm
>>> from tiktok_downloader import tikwm
>>> d=tikwm('https://vt.tiktok.com/xxxxxx/')
>>> d
[<[type: "video" watermark: False]>]
>>> d[0].download('video.mp4')
Tiktok
>>> from tiktok_downloader import VideoInfo
>>> d=VideoInfo.service('https://vt.tiktok.com/xxxxxx/')
>>> d
[<[type: "video" watermark: False]>]
>>> d[0].download('video.mp4')
Get Info
>>> from tiktok_downloader import VideoInfo
>>> VideoInfo.get_info('https://vt.tiktok.com/xxxxxx/')
usage: python3 -m tiktok_downloader [-h] [--snaptik | --ssstik | --tikmate | --mdown | --ttdownloader | --tikwm | --tikdown | --tiktok] [--host HOST] [--debug] [--port PORT] (--server | --url URL) [--info] [--json | --save SAVE]
Tiktok Downloader [CLI]
options:
-h, --help show this help message and exit
List Of Services:
--snaptik
--ssstik
--tikmate
--mdown
--ttdownloader
--tikdown
--tikwm
--tiktok
Web Configuration:
--host HOST Set host to run this web
--debug Set flask mode to debug
--port PORT Set port
Mode:
--server Run as web application
--url URL Video URL
Optional:
--info Print info video like author, id & etc
Output Type:
--json Print result to json format
--save SAVE Write the result to file
Download
$ python3 -m tiktok_downloader --url https://vt.tiktok.com/lorem --snaptik --save tiktok.mp4
Json
$ python3 -m tiktok_downloader --url https://vt.tiktok.com/lorem --snaptik --json
Run as web
$ python3 -m tiktok_downloader --host=0.0.0.0 --port=8000 --server
* Serving Flask app 'tiktok_downloader.server' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://127.0.0.1:8000 (Press CTRL+C to quit)
$ wget -O result.mp4 $(curl -sG http://127.0.0.1:8000/snaptik -d url=https://vm.tiktok.com/xxxxxxxx/|jq .[0].url -r)
http://127.0.0.1:8000/snaptik?url=https://vm.tiktok.com/xxxxxxxx/&type=embed
Name | Endpoint | Status |
---|---|---|
Snaptik | /snaptik | ✓ |
Tikmate | /tikmate | ✓ |
MusicalDown | /mdown | ✓ |
ssstik | /ssstik | ✓ |
ttdownloader | /ttdownloader | ✓ |
tikwm | /tikwm | ✓ |
tikdown | /tikdown | x |
tiktok | /tiktok | ✓ |