#!/usr/bin/env python __all__ = ['ted_download'] from ..common import * def ted_download(url, output_dir = '.', merge = True, info_only = False): page = get_html(url).split("\n") for line in page: if line.find("") > -1: title = line.replace("<title>", "").replace("", "").replace("\t", "") title = title[:title.find(' | ')] if line.find("no-flash-video-download") > -1: url = line.replace('