Perls Before Swine

Posted 2018-06-21

The genius programmers Alphabet corp have censored what is possibly greatest lecture series on programming in existence. Act now and get a copy for yourself, before it's too late. The below snippet should be all you need.

import subprocess
import os

base_url = 'http://archive.org/download/MIT_Structure_of_Computer_Programs_1986/'

lectures1 = [base_url + 'lec' + str(number) + letter + '.mp4'
             for number in [1,2,3,4,5,7,8,9]
             for letter in ['a', 'b']]

lectures2 = [base_url + item + '.mp4'
             for item in ['lec6a', 'Lec6b', 'Lec10a', 'lec10b']]

for lecture in lectures1 + lectures2:
        if not os.path.exists(lecture[-9:]):
                subprocess.check_call(['wget', lecture])

Leave a Reply (USE HTML! Space not preserved!)