• Stars
    star
    175
  • Rank 218,059 (Top 5 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tiktok Downloader/Scraper using requests & bs4


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

Library

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/')

Command line

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

Example CLI

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)

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 โœ“
tikwm /tikwm โœ“
tikdown /tikdown x
tiktok /tiktok โœ“

Donasi

More Repositories

1

SpamWa

Python
84
star
2

neonize

whatsapp automation library, written in python
Python
58
star
3

chappie-bot

BOT WHATSAPP
Python
36
star
4

xtempmail

๐Ÿ“จ Disposable Email (Python Library)
Python
17
star
5

brainly-scraper

brainly apigraphql
Python
10
star
6

tulis-module

Module For Python
Python
10
star
7

Spotify-Premium

Python
6
star
8

xfce4-noVNC

Dockerfile
6
star
9

OnlineIDE

Python
5
star
10

logflask

Login Flask, sudah memakai template
CSS
5
star
11

komiku

Python
4
star
12

pocard

Pokemon Card Maker
Python
4
star
13

TMFrame

Music Thumbnail Maker
Python
4
star
14

cloud-bot

Python
3
star
15

Absensi

JavaScript
3
star
16

GTOOL

Python
3
star
17

chrome-termux

Shell
3
star
18

bot-admin

CSS
3
star
19

wasted

Python
3
star
20

ttyd-over-terminal

Python
3
star
21

blackpink

Blackpink Logo Maker using Pillow
Python
3
star
22

Twibbonizze.js

JavaScript
3
star
23

comarsh

OpenEdge ABL
3
star
24

NhentModule

Python
3
star
25

bad_apple

Python
3
star
26

removebg

Python
3
star
27

termux-ohmyzsh

Shell
3
star
28

marshal

Encode to marshal bytecode
3
star
29

bot-wa-simi

maintenance
Python
3
star
30

wellcome

Python
3
star
31

FbVideoDownloader

Python
2
star
32

thundra-io

Thundra is a framework designed to streamline the development of WhatsApp bots and automations. It provides a solid foundation and abstraction layer to simplify the process of creating and managing WhatsApp bots for various purposes.
Python
2
star
33

uncrypton

Python
2
star
34

Animasi-Milos

Python
2
star
35

Uploader

Python
2
star
36

list-warna

Python
2
star
37

github_markdown2image

Python
2
star
38

Mp4ToMp3

Python
2
star
39

spybot.js

JavaScript
2
star
40

Deface

Python
2
star
41

bash2c

Compiler untuk bash
C
2
star
42

webssh-server

Shell
2
star
43

bot-webhook

Python
2
star
44

wp-bruteforce

Python
2
star
45

ssh-client

Untuk meremot shell atau meremot shell linux jarak jauh
Shell
2
star
46

Countdown-API

Python
2
star
47

loginflask

Login akun menggunakan flask
JavaScript
2
star
48

javac

2
star
49

spamchatfb

2
star
50

GINFO

pip2 install requests
Python
2
star
51

game

Python
2
star
52

PY2TOSH

11011 00110 11000 00101 11011 01001 00100 1110 00011 00100
2
star
53

instatools3

igdownloader Modul for python
Python
2
star
54

KryptOs

full terdiri dari cli yg menampilkan komputer 90 an
Python
2
star
55

YtDown

Python
2
star
56

krypton-byte

JavaScript
2
star
57

CGUI

Github cloner GUI version
Shell
2
star
58

visitor

Python
2
star
59

barcode

Python
2
star
60

drawHub

Pornhub Logo Maker with Pillow
Python
2
star
61

TrapCamera

HTML
2
star
62

proxy_server_heroku

Python
2
star
63

IpReverse

Python
2
star
64

virtext

Virtext downloader
2
star
65

clone

git clone versi lite dan memakan sedikit data dan lebih efisien untuk mengklone repository dari github
Shell
2
star
66

mat

Python
1
star
67

gitpy3

Python
1
star
68

tracktiktokpost

HTML
1
star
69

scpass

Python
1
star
70

ytmp3-api

Python
1
star
71

face_recognition

Python
1
star
72

bot-server

JavaScript
1
star
73

jagokata

Python
1
star
74

tugas-php

Tugas Sekolah
PHP
1
star
75

spybot

Python
1
star
76

HeroMl

Python
1
star
77

gdrive

Python
1
star
78

ssh-server

@_*
1
star
79

wpbf

Python
1
star
80

NApi

Python
1
star
81

NodeMcu-DHTServer

C++
1
star
82

igtools

Python
1
star
83

whatsapp-bot.js

JavaScript
1
star
84

tictactoe

Python
1
star
85

belajarJava

Java
1
star
86

python-exec

Python
1
star
87

relix

Python
1
star
88

dict2object

Python
1
star
89

login

dapat mengunci termux
Shell
1
star
90

bot-wp

Python
1
star
91

yt2mate

Module For Python
Python
1
star
92

peduli_diri

JavaScript
1
star
93

pinterest_video

Modul For Python
Python
1
star
94

Tools-Api

Shell
1
star
95

anongram

Python
1
star
96

twilio

Python
1
star
97

Quotes

#image + quotes Generator
Python
1
star
98

shot_on_iphone

Shot On Iphone Meme Maker
Python
1
star
99

brutezipfile

Python
1
star
100

krypton-byte.github.io

JavaScript
1
star