You-get

来自OSSmedia
Brucekomike讨论 | 贡献2025年1月7日 (二) 21:39的版本 (创建页面,内容为“ <pre> #!/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 </pre>”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)


#!/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