Beispiel #1
0
def bili_one(url, html=None):
    if not html:
        html = get_src(url)

    # 获取视频来源
    v_site, v_id = Compiled.bili_source(html)
    # 下载
    if v_site == 'cid':
        download_by_cid(v_id)
    else:
        raise NotImplementedError(v_site + '=' + v_id)
Beispiel #2
0
def bili_one(url, html=None):
    if not html:
        html = get_src(url)

    # 获取视频来源
    v_site, v_id = Compiled.bili_source(html)
    # 下载
    if v_site == 'cid':
        download_by_cid(v_id)
    else:
        raise NotImplementedError(v_site + '=' +  v_id)