#!/bin/bash # Base URL of the playlist or video base_url="https://example.com/video?p=" # Path to the cookie file cookie_file="cookies.txt" # folder output_folder="output" # Loop from part 15 to part 44 for i in {15..44} do # Construct the full URL url="${base_url}${i}" # Use you-get with the cookie file to download the video you-get -o "$output_folder" -c "$cookie_file" "$url" done