Skip to content

Source code of tiktok video downloader without watermark based on telegram

Notifications You must be signed in to change notification settings

akasakaid/TiktokDownloader

Repository files navigation

Tiktok Downloader

Source code for Telegram bot which functions to download TikTok videos without watermark.
This source code is not downloaded directly from TikTok but uses a third party.

How to run on your local machine

  1. Install python 3.8+ You can download from official python website : https://python.org.
    If you use Linux, you can directly install Python with the command
    sudo apt install python3 python3-pip -y
  2. Clone or download this repository
    git clone https://github.com/akasakaid/TiktokDownloader.git
  3. Goto TiktokDownloader folder
    cd TiktokDownloader
  4. Install required libraries
    python -m pip install -r requirements.txt
    or
    python3 -m pip install -r requirements.txt
  5. Copy .env.example into .env
    cp .env.example .env
    or
    copy .env.example .env
    
  6. Open .env in your code editor or something like that
  7. Create Telegram token bot in Bot Father : https://t.me/BotFather
  8. Copy and paste the token from bot father into .env
    token_bot = "token_botxxxxxxxxx"
  9. Create Api Hash and Api Id. You can create from https://my.telegram.org
  10. Copy and paste Api Hash and Api Id into .env file
    api_id = "123123"
    api_hash = "qwerertyiuo"
  11. Finally, type the command below to run the program
    python main.py
    or
    python3 main.py

if you want to run program 24/7, you can to run this program in linux server with using screen program

Install screen

sudo apt install screen -y

Create session

screen -R <session name>
example : screen -R tiktok

Run the program

python3 main.py

Save the session using keyboard shortcut ctrl + a + d

Done

Follow me

Support me