

def mixcloud_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
    html = get_html(url, faker=True)
    title = r1('<meta property="og:title" content="([^"]*)"', html)
    preview_url = r1('m-preview=\\"([^\\"]+)\\"', html)
    preview = r1('previews(.*)\\.mp3$', preview_url)
    for i in range(10, 30):
        url = 'https://stream{i}.mixcloud.com/c/m4a/64{p}.m4a'.format(i=i, p=preview)
        try:
            (mime, ext, size) = url_info(url)
            break
        except:
            continue
    print_info(site_info, title, ext, size)
    if (not info_only):
        download_urls([url], title, ext, size, output_dir=output_dir, merge=merge)

dataset/ETHPy150Open soimort/you-get/src/you_get/extractors/mixcloud.py mixcloud_download/original