Last active
February 14, 2025 20:23
-
-
Save macmichael01/78aa2259d05a356f36fb8662ff07a8d3 to your computer and use it in GitHub Desktop.
yt-bulk-dl.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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