Install the required packages using pip:
pip install -r requirements.txtRename 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 thesessionidcookie. 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.pyFor cleaning the downloaded videos, run the clean.py file:
python clean.pyThis will delete all videos.
