Download NPTEL Lectures 2
This is an update on the previous post on the same topic.
Given how unreliable youtube-dl is these days for downloading youtube videos, it’s better to directly download course videos from NPTEL’s site.
Here’s how to download the course videos for this course:
- Manually figure out the URLs for each video. Looking at the urls, I realized the links are based on week (mod
), while lectures go through 01-52.
$Url="https://archive.nptel.ac.in/content/storage2/117/106/117106148/MP4"
$Name=@(
'mod01lec01',
'mod01lec02',
'mod01lec03',
'mod01lec04',
'mod01lec05',
'mod01lec06',
'mod01lec07',
'mod02lec08',
'mod02lec09',
'mod02lec10',
'mod02lec11',
'mod02lec12',
'mod02lec13',
'mod03lec14',
'mod03lec15',
'mod03lec16',
'mod03lec17',
'mod03lec18',
'mod03lec19',
'mod03lec20',
'mod03lec21',
'mod03lec22',
'mod04lec23',
'mod04lec24',
'mod04lec25',
'mod04lec26',
'mod05lec27',
'mod05lec28',
'mod05lec29',
'mod05lec30',
'mod06lec31',
'mod06lec32',
'mod06lec33',
'mod06lec34',
'mod06lec35',
'mod06lec36',
'mod07lec37',
'mod07lec38',
'mod07lec39',
'mod07lec40',
'mod07lec41',
'mod08lec42',
'mod08lec43',
'mod08lec44',
'mod08lec45',
'mod08lec46',
'mod09lec47',
'mod09lec48',
'mod09lec49',
'mod09lec50'
'mod09lec51',
'mod09lec52'
)
- Use
curl/Invoke-WebRequest
to download the videos. (I’ve foundcurl
to be quicker.)
$Name | %{iwr "$Url/$_.mp4" -OutFile "$_.mp4" -Verbose}
$Name | %{curl "$Url/$_.mp4" -o "$_.mp4"}