Skip to content

Instantly share code, notes, and snippets.

@macmichael01
Last active February 14, 2025 20:23
Show Gist options
  • Save macmichael01/78aa2259d05a356f36fb8662ff07a8d3 to your computer and use it in GitHub Desktop.
Save macmichael01/78aa2259d05a356f36fb8662ff07a8d3 to your computer and use it in GitHub Desktop.
yt-bulk-dl.sh
#!/bin/bash
# A simple script that downloads multiple YouTube videos at once.
# Define the videos to download by adding the link in the list below.
# make sure that you have yt-dlp installed on your machine.
# Link: https://github.com/yt-dlp/yt-dlp
# Define a list of YouTube links
links=(
"<youtube link here>"
)
# Loop through the list and download each video
for link in "${links[@]}"; do
yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" "$link"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment