Skip to content

devhallo/python-download-1

Repository files navigation


Unittest Upload to PyPi Downloads viitor

install

> python3 -m pip install tiktok_downloader
> python3 -m pip install git+https://github.com/krypton-byte/tiktok-downloader
  • ssstik

  • >>> from tiktok_downloader import ssstik
    >>> ssstik().get_media("url")
    [<[type:video]>, <[type:music]>]
    >>> ssstik().get_media("url")[0].download("result.mp4")
  • snaptik

  • >>> from tiktok_downloader import snaptik
    >>>snaptik("url").get_media()
    [<[type:video]>, <[type:video]>]
    >>> snaptik("url").get_media()[0].download("result.mp4")
  • get info

  • >>> 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

Command line

  • 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": ""
    }

Run as web

$ python3 -m tiktok_downloader --host=0.0.0.0 --port=8000 --server

Deploy Heroku

Deploy

Preview

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

Endpoint

Name Endpoint Status
Snaptik /snaptik
Tikmate /tikmate
MusicalDown /mdown
ssstik /ssstik
ttdownloader /ttdownloader
tikdown /tikdown

Donasi

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •