• Stars
    star
    175
  • Rank 212,879 (Top 5 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created about 3 years ago
  • Updated 12 months 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

chappie-bot

BOT WHATSAPP
Python
36
star
3

neonize

whatsapp automation library, written in python
Python
30
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

dark-fb-ua

mungkin ini konyol mengubah user agent demi menghindari dari checkpoint
3
star
25

NhentModule

Python
3
star
26

wellcome

Python
3
star
27

bad_apple

Python
3
star
28

removebg

Python
3
star
29

termux-ohmyzsh

Shell
3
star
30

marshal

Encode to marshal bytecode
3
star
31

bot-wa-simi

maintenance
Python
3
star
32

Animasi-Milos

Python
2
star
33

Uploader

Python
2
star
34

list-warna

Python
2
star
35

github_markdown2image

Python
2
star
36

Mp4ToMp3

Python
2
star
37

spybot.js

JavaScript
2
star
38

Deface

Python
2
star
39

bash2c

Compiler untuk bash
C
2
star
40

webssh-server

Shell
2
star
41

wp-bruteforce

Python
2
star
42

FbVideoDownloader

Python
2
star
43

ssh-client

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

Countdown-API

Python
2
star
45

loginflask

Login akun menggunakan flask
JavaScript
2
star
46

javac

2
star
47

spamchatfb

2
star
48

krypton-byte

JavaScript
2
star
49

GINFO

pip2 install requests
Python
2
star
50

game

Python
2
star
51

PY2TOSH

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

instatools3

igdownloader Modul for python
Python
2
star
53

uncrypton

Python
2
star
54

KryptOs

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

YtDown

Python
2
star
56

CGUI

Github cloner GUI version
Shell
2
star
57

visitor

Python
2
star
58

barcode

Python
2
star
59

drawHub

Pornhub Logo Maker with Pillow
Python
2
star
60

IpReverse

Python
2
star
61

TrapCamera

HTML
2
star
62

proxy_server_heroku

Python
2
star
63

bot-webhook

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

NodeMcu-DHTServer

C++
1
star
79

ssh-server

@_*
1
star
80

wpbf

Python
1
star
81

NApi

Python
1
star
82

igtools

Python
1
star
83

whatsapp-bot.js

JavaScript
1
star
84

krypton-byte.github.io

JavaScript
1
star
85

tictactoe

Python
1
star
86

yt2mate

Module For Python
Python
1
star
87

belajarJava

Java
1
star
88

python-exec

Python
1
star
89

relix

Python
1
star
90

bot-wp

Python
1
star
91

dict2object

Python
1
star
92

login

dapat mengunci termux
Shell
1
star
93

peduli_diri

JavaScript
1
star
94

pinterest_video

Modul For Python
Python
1
star
95

Tools-Api

Shell
1
star
96

anongram

Python
1
star
97

twilio

Python
1
star
98

Quotes

#image + quotes Generator
Python
1
star
99

shot_on_iphone

Shot On Iphone Meme Maker
Python
1
star
100

brutezipfile

Python
1
star