Date created: Saturday, April 6, 2024 7:44:40 PM. Last modified: Saturday, February 15, 2025 11:25:32 AM

'wget' - Notes

Download a list of URLs;

for url in $(cat urls.txt); do echo "doing $url" && wget -O $(basename "$url") -nc --show-progress "$url"; done

# Exclude comments
for url in $(grep -v "#" urls.txt); do echo "doing $url" && wget -O $(basename "$url") -nc --show-progress "$url"; done

# Rename files from .html to .mp4
for url in $(cat urls.txt); do echo "doing $url" && wget -O $(basename "${url/html/mp4}") -nc --show-progress "$url"; done

 


Previous page: 'vim' - Notes
Next page: 'youtube-dl' Notes