2011-11-19, 18:18
It seems like TED talks have changed the download links again. You now have too parse the mobile (?) link to the mp4 file for "standard res" and then append "-480p" for the "highres" version or "-light" for the lowres version.
I haven't created a diff sadly. I need to use the git repo from now on...
Here is the new code on line 52 in ted_talks_scraper.py
I haven't created a diff sadly. I need to use the git repo from now on...
Here is the new code on line 52 in ted_talks_scraper.py
Code:
for link in soup.findAll('a'):
if re.match('download the video' , str(link.string)):
url = link['href']
url = url[:-4] + "-480p" + url[-4:]