Download NPTEL Audio lectures (MP3) and Subtitles (SRT)

In the previous post, we have seen how to download NPTEL Video lectures (MP4 / FLV) without going through NPTEL Website.  Now, I will explain how to auto download NPTEL Audio lectures (MP3), Subtitles (SRT) of the Video Lectures.

The text Transcription of NPTEL Video Lectures is provided in the following website.  The Audio Lectures (MP3), PDF Lectures, Subtitles (SRT) can be downloaded from here.

http://textofvideo.nptel.iitm.ac.in

Downloading of NPTEL Audio Lectures (MP3)

Follow step-1 for storing the course ID as mentioned in the below post.

https://linuxbaskar.wordpress.com/2015/02/16/download-nptel-video-lectures-without-going-to-nptel-website/

Linux Shell Script for Automatic Downloading of NPTEL Audio Lectures (MP3)

#!/bin/bash
courseid=$(sed -e ‘s/.*\(………\)$/\1/’ course.id)

echo
read -e -p “Enter the First Audio Lecture (MP3) of the Course to Download : ” -i 1 lecfirst; echo
read -e -p “Enter the Last Audio Lecture (MP3) of the Course to Download  : ” -i 40 leclast;  echo

for i in $(seq -f “%01g” $lecfirst $leclast);
do
wget -c http://textofvideo.nptel.iitm.ac.in/MP3/$courseid/lec$i.mp3
done

Note:  There are 9 dots (.) in the second line of the shell script which is used to read, extract and store the nine digit course ID from the ‘course.id’ file to the ‘courseid’ variable.

Linux Shell Script for Automatic Downloading of NPTEL Video Lecture Subtitles (SRT)

#!/bin/bash
courseid=$(sed -e ‘s/.*\(………\)$/\1/’ course.id)

echo
read -e -p “Enter the First Sub-Title no. of the Course to Download : ” -i 1 lecfirst; echo
read -e -p “Enter the Last Sub-Title no. of the Course to Download  : ” -i 45 leclast; echo

for i in $(seq -f “%02g” $lecfirst $leclast);
do
wget -c http://nptel.ac.in/srt/$courseid/Lec-$i.srt
done

Note:  There are 9 dots (.) in the second line of the shell script which is used to read, extract and store the nine digit course ID from the ‘course.id’ file to the ‘courseid’ variable.

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s