Skip to content

🤖 Bot for scrap, download, crop and slice video

License

Notifications You must be signed in to change notification settings

axelv71/TikTokBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

made-with-python


Logo

TikTokBot

Bot for downloads YouTube videos, crop them to TikTok format, and upload them to TikTok.


Installation

Install the required packages using pip:

pip install -r requirements.txt

Rename the .env.example file to .env and fill in the required fields.

  • TIKTOK_SESSION_ID - TikTok session ID. You can get it by logging in to TikTok and copying the value of the sessionid cookie. For more information, see this
  • CROP_RATIO_WIDTH - Width of the crop ratio. Example: 9
  • CROP_RATIO_HEIGHT - Height of the crop ratio. Example: 16
  • SLICE_MIN_DURATION - Minimum duration of the video slice. Example: 60 seconds
  • SLICE_MAX_PARTS - Maximum number of parts to which the video will be divided. Example: 3
  • TIKTOK_UPLOAD_DELAY - Delay between TikTok uploads. Recommended value: 30 seconds minimum

Usage

Change the url of the YouTube channel in the main.py file:

channel_url='https://www.youtube.com/@MontreuxComedy'

Run the main.py file:

python main.py

For cleaning the downloaded videos, run the clean.py file:

python clean.py

This will delete all videos.

Sources

About

🤖 Bot for scrap, download, crop and slice video

Topics

Resources

License

Stars

Watchers

Forks