Skip to content

Instantly share code, notes, and snippets.

@sarathsp06
Created May 20, 2014 08:36
Show Gist options
  • Save sarathsp06/646540ecc78cbfdb2ca8 to your computer and use it in GitHub Desktop.
Save sarathsp06/646540ecc78cbfdb2ca8 to your computer and use it in GitHub Desktop.
import re
import urllib2
from os import system
lecture='https://class.coursera.org/android-001/lecture'
content=urllib2.urlopen(lecture).read()
sub=re.compile(r'https://class.coursera\.org/android-001/lecture/subtitles\?q=[0-9]+_en\&format=srt')
vid=re.compile(r'https://class\.coursera\.org/android-001/lecture/download\.mp4\?lecture_id=[0-9]+')
for i in sub.findall(content):
print 'Downloading %s' %i
system('wget '+i)
for i in vid.findall(content):
print 'Downloading %s' %i
system('wget '+i)
@sarathsp06
Copy link
Author

Program to download all the videos for lecture on #android development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment