Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time, os, requests, json, random, bs4
- from time import sleep as waktu
- from rich.text import Text as tekz
- from requests.exceptions import ConnectionError
- # warna untuk print
- H = "\033[0;92m" # HIJAU
- K = "\033[0;93m" # KUNING
- M = '\x1b[1;91m' # MERAH
- P = "\033[0m" # PUTIH
- U = '\x1b[1;95m'
- B = '\x1b[1;94m'
- # warna untuk rich
- H2 = "[#00FF00]" # HIJAU
- K2 = "[#FFFF00]" # KUNING
- N2 = "[#FF00FF]" # PINK
- P2 = "[#FFFFFF]" # PUTIH
- def clear_layar():
- try:os.system('clear')
- except:pass
- def banner2():
- print(f'''\t
- \33[36;1m╦ \33[37;1m┌─┐┌─┐┬┌┐┌
- \33[36;1m║ \33[37;1m│ ││ ┬││││ \33[31;1m> \33[37;1mCreator \33[31;1m: \33[1;33m𝚅𝙸𝙽𝙳𝚁𝙰-𝚇𝙳
- \33[36;1m╩═╝\33[37;1m└─┘└─┘┴┘└┘ \33[31;1m> \33[37;1mFacebook\33[31;1m: \33[1;33mVindra Doang
- \33[31;1m> \33[37;1mKetik\33[32;1m BOT\33[37;1m Untuk Cara Mendapatkan Token sc Ini
- \33[31;1m> \33[37;1mDownload Dulu Tokennya
- \33[31;1m> \33[37;1mLink \33[31;1m: [ \33[32;1mhttps://khaddavi.net/zkBSzV \33[31;1m]
- \033[1;97m>─────────────────────────────────────────────────<\n''')
- y = "EAAMTgLkahajwiqoababPqjan19JakiNakaaka"
- def login():
- clear_layar(); banner2();
- p = input("\33[31;1m# \33[37;1mToken \33[31;1m: \33[30m")
- if p == y:
- print ("\n\33[31;1m> \33[37;1mLogin Succes \33[32;1m√\n")
- yt()
- if p in ['BOT','Bot','bot']:
- os.system('xdg-open https://youtu.be/62YQzzYiD34')
- login()
- else :
- print ("\n\33[31;1m> \33[37;1mToken Salah \33[31;1mX\n")
- os.system("clear")
- login()
- def yt():
- clear_layar();
- print(f'{H}Subcribe{P} channel gw dulu')
- os.system('xdg-open https://youtube.com/@vindradesign')
- waktu(3)
- mulai()
- xyz = requests.Session()
- path = "/storage/emulated/0/Tiktok-Downloader"
- try:
- os.mkdir(path)
- except:
- pass
- class Main:
- def __init__(self):
- pass
- def dow_tt(tk_vid, id_vid, nama_vid):
- nm_vid = f"tiktok_download_{nama_vid}"
- try:
- print (f' [•] Sedang Mendownload Video....')
- run = xyz.get(f'https://tikmate.app/download/{tk_vid}/{id_vid}.mp4?hd=1').content
- with open(f"{path}/{nm_vid}.mp4", "wb") as sv:
- sv.write(run)
- exit(f' [✓] Tersimpan di{M} :{P} {path}/{nm_vid}.mp4')
- except ConnectionError:
- exit(f"\n\33[31;1m !\33[37;1m Koneksi Lu Tidak Setabil")
- except KeyError:
- exit(f'\n Url/Video erorr')
- def get_dat(url):
- data = {"url": url}
- try:
- data = requests.post('https://api.tikmate.app/api/lookup',data=data).text
- resp = json.loads(data)
- if 'true' in data:
- tk_vid = resp['token']
- id_vid = resp['id']
- at_vid = resp['author_name']
- tll_up_vid = resp['create_time']
- print (f'\n{H} >{P} Nama Creator{M} :{P} {at_vid}')
- print (f'{H} >{P} id Video {M} :{P} {id_vid}')
- print (f'{H} >{P} Tanggal Upload{M} :{P} {tll_up_vid}')
- dwon = input(f'\n{M} ?{P} Inggin Download Video y/t: ')
- if dwon in ['Y','y']:
- nama_vid = input(f' [!] Masukan Nama untuk menyimpan video : ')
- dow_tt(tk_vid, id_vid, nama_vid)
- else:
- exit(f'\n Thanks sudah menggunakan sc ini')
- else:
- exit(f'\n Url/Video error')
- except KeyError:
- exit(f'\n Url/Video Error')
- def mulai():
- os.system("clear")
- print(f'''
- {U}╔╦╗{P}┌─┐┬ ┬┌┐┌┬ ┌─┐┌─┐┌┬┐┌─┐┬─┐{U} ╦ ╦{P}┬┌┬┐┌─┐┌─┐
- {U} ║║{P}│ ││││││││ │ │├─┤ ││├┤ ├┬┘{U} ╚╗╔╝{P}│ ││├┤ │ │
- {U}═╩╝{P}└─┘└┴┘┘└┘┴─┘└─┘┴ ┴─┴┘└─┘┴└─{U} ╚╝ {P}┴─┴┘└─┘└─┘
- 【\033[1;36mTiktok{P}】
- Creathor{M} :{P} Vindra Exe
- Youtubr {M} :{P} Vindra ID\n''')
- url = input(f'\033[1;36m [!] Link{M} :{P} ')
- if url in ['']:
- exit(f'\n Link tidak di temukan' )
- else:
- get_dat(url)
- if __name__ == "__main__":
- try:
- login()
- except ConnectionError:
- exit(f"\n\33[31;1m !\33[37;1m Koneksi Tidak Tersambung\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement