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 thesessionid
cookie. For more information, see thisCROP_RATIO_WIDTH
- Width of the crop ratio. Example: 9CROP_RATIO_HEIGHT
- Height of the crop ratio. Example: 16SLICE_MIN_DURATION
- Minimum duration of the video slice. Example: 60 secondsSLICE_MAX_PARTS
- Maximum number of parts to which the video will be divided. Example: 3TIKTOK_UPLOAD_DELAY
- Delay between TikTok uploads. Recommended value: 30 seconds minimum
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.