Bash script for downloading bulk videos from a Cousera course

I have joined in the Algorithms: Design and analysis at coursera, today i came up with question asking a way to download all the Cousera videos at a time, so i have written a bash script to that problem..

#!/bin/bash
let vidlec=1;
while [[ vidlec -le 21 ]]; do
	wget "https://class.coursera.org/algo-005/lecture/download.mp4?lecture_id=$vidlec"
	let vidlec=vidlec+1
done

wget "https://class.coursera.org/algo-005/lecture/download.mp4?lecture_id=165"
wget "https://class.coursera.org/algo-005/lecture/download.mp4?lecture_id=167"
wget "https://class.coursera.org/algo-005/lecture/download.mp4?lecture_id=169"
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s