美文网首页
尝试获取Lynda字幕文件

尝试获取Lynda字幕文件

作者: 松间闻雪 | 来源:发表于2017-06-09 13:35 被阅读58次

    Python尝试获取lynda字幕内容

    from urllib import request
    url ="https://www.lynda.com/ajax/player/transcript?courseId=534425&videoId=583139" #字幕地址
    headers = {
        "Cookie":"tcookie=bc963a46-cddd-4f23-845b-a2ebbe3070c8;token=652dd73e-5ad8-4281-9bf7-83822db365a9,06ab64bcbde98de7dbd52983dc2325d4,1GmfWzy0begRSXdiB3hxZSPhtyncpE8p/F0BKMuoRAfJAeMfD5qhgonpizHSGRlkBZOsv7h5aGO4YZ806bUzxilhfA9v5ljumG+ZVWlVsAySZayUI95xN6Ak4jVroDYPua7GCqv5ra9ejSD+wcmzvQ==;"
    }
    page = request.Request(url,headers=headers)
    page = request.urlopen(page)
    html = page.read()
    print(html)
    

    相关文章

      网友评论

          本文标题:尝试获取Lynda字幕文件

          本文链接:https://www.haomeiwen.com/subject/bmtfqxtx.html