you-get
you-get copied to clipboard
fix youku playlist
Fix youku official playlist. Example
Hello @moaix, Thanks for the Pull Request. We :heart: our contributors! Please wait for one of our human maintainers to review your patches. This may take a few days to weeks. Also, please understand that although your Pull Request may or may not be eventually merged, we value all contributions equally.
祝您健康!
希望添加优酷VIP视频下载,这是我们最希望的?
i can only download the foremost 2 parts of the video on youku.com,with no any error info。 for example, you-get --format=mp4hd2v2 http://v.youku.com/v_show/id_XMzk1MTE1Njg0MA==.html then i get 2 parts of this video,25.6%(75.1/293.1MB),and merged this 2parts,and finished。
The video downloaded by Youku is incomplete.
i can only download the foremost 2 parts of the video on youku.com,with no any error info。 for example, you-get --format=mp4hd2v2 http://v.youku.com/v_show/id_XMzk1MTE1Njg0MA==.html then i get 2 parts of this video,25.6%(75.1/293.1MB),and merged this 2parts,and finished。
The situation I encountered is almost the same.
优酷下载的视频不完整。 How is your problem solved?
I also encountered the same problem. How to solve it? Thank you!
`C:\Users\yfyan>you-get https://v.youku.com/v_show/id_XMzk4NDE2Njc4OA==.html site: 优酷 (Youku) title: 序章:罗网之心 stream: - format: mp4hd2v2 container: mp4 video-profile: 超清 size: 374.9 MiB (393101761 bytes) m3u8_url: http://pl-ali.youku.com/playlist/m3u8?vid=XMzk4NDE2Njc4OA&type=mp4hd2v3&ups_client_netip=718c0b03&utid=StSrFC%2BzijECAXGMCwNLPree&ccode=0590&psid=cd7d94884dfdd12c692a11266f79936a&duration=1794&expire=18000&drm_type=1&drm_device=10&ups_ts=1545922125&onOff=0&encr=0&ups_key=a0264fb079c71d274d0a3a7b1ec1f1b4 # download-with: you-get --format=mp4hd2v2 [URL]
Downloading 序章:罗网之心.mp4 ... 20.3% ( 76.0/374.9MB) ├█████████───────────────────────────────┤[2/2] 4 MB/s Merging video parts... .\序章:罗网之心[00].mp4 .\序章:罗网之心[01].mp4 Merged into 序章:罗网之心.mp4`
i can only download the foremost 2 parts of the video on youku.com,with no any error info。 for example, you-get --format=mp4hd2v2 http://v.youku.com/v_show/id_XMzk1MTE1Njg0MA==.html then i get 2 parts of this video,25.6%(75.1/293.1MB),and merged this 2parts,and finished。
Have you solved this problem?
i can only download the foremost 2 parts of the video on youku.com,with no any error info。 for example, you-get --format=mp4hd2v2 http://v.youku.com/v_show/id_XMzk1MTE1Njg0MA==.html then i get 2 parts of this video,25.6%(75.1/293.1MB),and merged this 2parts,and finished。
Have you solved this problem?
i have not。
通过参数cookies可以解决,步骤如下:
1、获取cookie。浏览器安装EditThisCookie插件,导出Netscape HTTP格式文件,保存为cookies.txt
2、you-get下载时加上参数-c cookies.txt
或--cookies cookies.txt
通过参数cookies可以解决,步骤如下: 1、获取cookie。浏览器安装EditThisCookie插件,导出Netscape HTTP格式文件,保存为cookies.txt 2、you-get下载时加上参数
-c cookies.txt
或--cookies cookies.txt
你现在能用you-get在优酷上下载视频么,我刚试了一下,直接提示无权播放了
通过参数cookies可以解决,步骤如下: 1、获取cookie。浏览器安装EditThisCookie插件,导出Netscape HTTP格式文件,保存为cookies.txt 2、you-get下载时加上参数
-c cookies.txt
或--cookies cookies.txt
你现在能用you-get在优酷上下载视频么,我刚试了一下,直接提示无权播放了
我试过可以的。提示无权播放,修改ccode
可解决。
通过参数cookies可以解决,步骤如下: 1、获取cookie。浏览器安装EditThisCookie插件,导出Netscape HTTP格式文件,保存为cookies.txt 2、you-get下载时加上参数
-c cookies.txt
或--cookies cookies.txt
我加了-c cookies.txt之后,优酷还是只能下一部分,并且报错:d:\python\python36\lib\http\cookiejar.py:2061: UserWarning: http.cookiejar bug! Traceback (most recent call last): File "d:\python\python36\lib\http\cookiejar.py", line 2034, in _really_load assert domain_specified == initial_dot AssertionError
_warn_unhandled_exception() 请问是什么原因?
通过参数cookies可以解决,步骤如下: 1、获取cookie。浏览器安装EditThisCookie插件,导出Netscape HTTP格式文件,保存为cookies.txt 2、you-get下载时加上参数
-c cookies.txt
或--cookies cookies.txt
我加了-c cookies.txt之后,优酷还是只能下一部分,并且报错:d:\python\python36\lib\http\cookiejar.py:2061: UserWarning: http.cookiejar bug! Traceback (most recent call last): File "d:\python\python36\lib\http\cookiejar.py", line 2034, in _really_load assert domain_specified == initial_dot AssertionError
_warn_unhandled_exception() 请问是什么原因?
可能是导出格式不对,请确认文件前三行是如下内容:
# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This file was generated by EditThisCookie
下载不完整,可能的原因是因为没有加cookie,即使加了cookie,自身不是VIP会员,我测试都可以完整下载。
通过参数cookies可以解决,步骤如下: 1、获取cookie。浏览器安装EditThisCookie插件,导出Netscape HTTP格式文件,保存为cookies.txt 2、you-get下载时加上参数
-c cookies.txt
或--cookies cookies.txt
我加了-c cookies.txt之后,优酷还是只能下一部分,并且报错:d:\python\python36\lib\http\cookiejar.py:2061: UserWarning: http.cookiejar bug! Traceback (most recent call last): File "d:\python\python36\lib\http\cookiejar.py", line 2034, in _really_load assert domain_specified == initial_dot AssertionError _warn_unhandled_exception() 请问是什么原因?
可能是导出格式不对,请确认文件前三行是如下内容:
# Netscape HTTP Cookie File # http://curl.haxx.se/rfc/cookie_spec.html # This file was generated by EditThisCookie
我确定是这三行,但是还是报错。我以为是python的问题还重装了最新的python37,但是问题依然在。
通过参数cookies可以解决,步骤如下: 1,获取cookie。浏览器安装EditThisCookie插件,导出Netscape HTTP格式文件,保存为cookies.txt 2,you-get下载时加上参数
-c cookies.txt
或--cookies cookies.txt
我加了-c cookies.txt之后,优酷还是只能下一部分,并且报错:d:\ python \ python36 \ lib \ http \ cookiejar.py:2061:UserWarning:http.cookiejar bug! 回溯(最近调用最后一次): 文件“d:\ python \ python36 \ lib \ http \ cookiejar.py”,第2034行,在 _really_load断言domain_specified == initial_dot AssertionError _warn_unhandled_exception()请问 是什么原因?
可能是导出格式不对,请确认文件前三行是如下内容:
# Netscape HTTP Cookie File # http://curl.haxx.se/rfc/cookie_spec.html # This file was generated by EditThisCookie
我确定是这三行,但是还是报错。我以为是蟒蛇的问题还重装了最新的python37,但是问题依然在。
我也出现同样的问题了,靓仔解决这个问题了吗?
通过参数cookies可以解决,步骤如下: 1,获取cookie。浏览器安装EditThisCookie插件,导出Netscape HTTP格式文件,保存为cookies.txt 2,you-get下载时加上参数
-c cookies.txt
或--cookies cookies.txt
我加了-c cookies.txt之后,优酷还是只能下一部分,并且报错:d:\ python \ python36 \ lib \ http \ cookiejar.py:2061:UserWarning:http.cookiejar bug! 回溯(最近调用最后一次): 文件“d:\ python \ python36 \ lib \ http \ cookiejar.py”,第2034行,在 _really_load断言domain_specified == initial_dot AssertionError _warn_unhandled_exception()请问 是什么原因?
可能是导出格式不对,请确认文件前三行是如下内容:
# Netscape HTTP Cookie File # http://curl.haxx.se/rfc/cookie_spec.html # This file was generated by EditThisCookie
我确定是这三行,但是还是报错。我以为是蟒蛇的问题还重装了最新的python37,但是问题依然在。
我也出现同样的问题了,靓仔解决这个问题了吗?
同样问题,请问解决了吗
我的解析 vip 视频,加上 cookies 后会报错:
命令如下:
you-get --debug -k -i https://v.youku.com/v_show/id_XNDQyNzg0MjgzNg==.html --cookies cookies.txt
日志如下:
Traceback (most recent call last):
File "/usr/local/bin/you-get", line 11, in <module>
load_entry_point('you-get==0.4.1355', 'console_scripts', 'you-get')()
File "/usr/local/Cellar/you-get/0.4.1355/libexec/lib/python3.7/site-packages/you_get/__main__.py", line 92, in main
main(**kwargs)
File "/usr/local/Cellar/you-get/0.4.1355/libexec/lib/python3.7/site-packages/you_get/common.py", line 1758, in main
script_main(any_download, any_download_playlist, **kwargs)
File "/usr/local/Cellar/you-get/0.4.1355/libexec/lib/python3.7/site-packages/you_get/common.py", line 1593, in script_main
load_cookies(args.cookies)
File "/usr/local/Cellar/you-get/0.4.1355/libexec/lib/python3.7/site-packages/you_get/common.py", line 1332, in load_cookies
line.split("\t")
ValueError: not enough values to unpack (expected 7, got 1)