Open redstoneleo opened 6 years ago
看来还是要解决 cookies 的问题才行,之前尝试过,看的头疼。
cookies很复杂,这也是fork you-get时,去掉cookies的一个原因。
关键 cookies 是在浏览器生成的,没法直接获取。 记得 youtube-dl 有使用模拟的方法获取链接和 cookies。
ccode: "0515"||"0516"||"0517",配合 ckey_default,可以获取最高至 720P 的视频。
看来还能续,但是经常改好麻烦。
能1080P的0511也在今天挂了
看来需要做一个模拟登陆?
这个接口迟早都得上cookies 测试了几个,以下的ccode还能用
0505:预览
0512:完整
0515:完整
0516:预览
0518:预览
0590:预览
0401可以解析1080,但只能解析一次是什么鬼?
`$ you-get http://v.youku.com/v_show/id_XMzc1OTg5NTM0MA==.html site: 优酷 (Youku) title: 武动乾坤之英雄出少年 13 stream:
audio-languages:
Downloading 武动乾坤之英雄出少年 13.mp4 ... 66.6% (539.6/810.0MB) ├██████████████████████████────────────┤[14/21] 15 MB/s`
之前提过,0401 配合非默认 ckey 可以解析多次。
刚试了下,好像已经不行了。换成 0511 配合非默认 ckey 又能用了。
0401 和 0511 配合非默认 ckey 都可以,但是因为优酷的检测机制,一个 ckey 不能短时间内多次使用。我的想法是,当前直接简单暴力搞一大堆非默认 ckey 集成数组,然后随机挑选吧。
提供 11 个非默认 ckey,超过 1 小时 1080P (https://v.youku.com/v_show/id_XMzY3OTUxNjY5Mg==.html )测试通过: 110#ahSkAUkfkpFQCWMBgUfkMuy2kMZXsckXcVGOFwS2hQ7/8APgJUUzc1dyjwucSltV8MKQ35a2ho0N8cUn5UvgJKYIoL5d2A5EGjXOmUk2vKKB9TUt5OJfcQt5zyyf1DM2HrtjLKrVRqdGfNBijTkiLgicaDpis9kk4EKQs3gwP9e4GXPHjsawP44LDhzyMgXGBDIet+ZiDHT4GLsij9sykb8hsbPrVZ7KAyaQs3kIbR44GwbV4YjhIkfhs4cTX+dBLUSvpkkXRLsd2Yezv3WfNzhSOkhFSUj0FHCaoYWbDDbCXmykfL3fYu+CqPrHHWGu+YRMLeDeE8z8ryc1CCh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To8q84IXr70iYJwmiKERnxM2Z0odmcCxT3qPN1yhymns5CZuIG0OtgrMZtcOpazXJ4Y0qxqbeC2oWzZfoZD18l7uLD0OE8SvXEEq2DwqcM7X2rS4kZP+URb26T53rFVWCG+uagoaUSewj0E7pN1jJWxwkgEDzJcwcmRqaKuJ8ttSp+f1SmqUj2uduGzsvVQdvhQ2QYOl1dxpOuuu5vCv6Sb1Xg
那么新建一个文件记录Ckey,每次使用的时候随即取一个?
再问一个问题,ccode和ckey可以自由组合吗?
不建议这样搞
@zhangn1985 在我的测试中,ccode(0401,0511)和 ckey 可以自由组合。
@SeaHOH 我能想到的另一个方法是模拟访问,每次获取真实 ckey。或者还有其他办法?
模拟的方法需要增加依赖,最好是能解析关键 cookies 的生成算法。 不过代码混淆后看不清,不知道有没有高手能解决。
网上看到有的插件返回地址是这种格式,大神们知道是从哪个平台获取的吗?ctype=30 http://pl.youku.com/playlist/m3u8?ts=1535097100&keyframe=0&m3u8Md5=0ce03b15678d18b0ae9765186541f7d4&pid=65a965fbf632be6f&vid=XMTI4NTY3MTY1Mg==&type=hd2&ctype=30&sid=05350971004393017759d @SeaHOH @airdge
旧版youku/cibn apk
一部分解析不到 还得依赖ups接口
m3u8 格式 MPV 播放支持不完善
对于解析失败的情况,可以考虑把这个m3u8做为备用吧,总好过下不了
对于解析失败的情况,可以考虑把这个m3u8做为备用吧
无所谓备用,失败就是失败。
贴个解析失败的视频地址看看?
@leavjenn D:\temp>ykdl -i "https://v.youku.com/v_show/id_XMzUzMjQxMjk4OA==.html" CRITICAL:YKDL:客户端无权播放,201 试了几个都是201
@maximum-proo 用 0515 + 默认 ckey 可以。
@leavjenn 能讲清楚一点吗?怎么做?谢谢
@zhouhao27 先 pull 最新版代码试试?
ckey算法位于https://aeu.alicdn.com/js/cj/110.js 有兴趣可以去研究下
@airdge 我觉得可以考虑加一个Python 调用js的模块进来,省得去费精力研究js代码
其实只要挂在cookie,不要维护,获取1080
这个视频只能下载前面两段https://v.youku.com/v_show/id_XMzgwNTIxNjY4NA==.html?spm=a2hww.11359951.m_26657.5~1~3~A
新学一招:使用移动版的 ccode。 不过还是要随时更新,关键是我也不会,都是抄的。
不小心夹带了一个 ckey,请无视,下次去掉。
@redstoneleo 用nodejs写,相对简单点, python好像有个execjs模块,不知道可以不可以直接跑
http://videoparse.applinzi.com/videoparse/parse/extra/youku.ckey.php
~Get 到源码了~,试试能看懂不。
http://denobisadownloader.blogspot.com/2018/08/youku-ckey-hacked.html 刚仔细看了下,搞错了,并不是源码。
除非把所有用到的浏览器变量和函数都重写,还是 PhantomJS 更方便。
不过 PhantomJS 已经停止维护。
chrome的无头模式可以替代phantomjs
Chrome 的 headless 并非一个友好的替代,它太臃肿了,不适合于此类工具调用。 实际上我连 PhantomJS 都不想用。
@airdge 运行109.js就能得到ckey?
@redstoneleo 这个要模拟一部分相关参数以及创建DOM实体才能跑(nodejs)
我这边又下载不了优酷了,你们的还可以吗?
>ykdl -i https://v.youku.com/v_show/id_XMzgxNzg4Mjc5Ng==.html?spm=a2hg
h.20012081.m_104547.5~5!2~5~5~5~5~5~5!2~A
Traceback (most recent call last):
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\urllib\request.
py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\http\client.py"
, line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\http\client.py"
, line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\http\client.py"
, line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\http\client.py"
, line 1026, in _send_output
self.send(msg)
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\http\client.py"
, line 964, in send
self.connect()
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\http\client.py"
, line 1392, in connect
super().connect()
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\http\client.py"
, line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\socket.py", lin
e 724, in create_connection
raise err
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\socket.py", lin
e 713, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没
有反应,连接尝试失败。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\Scripts\ykdl-script
.py", line 11, in <module>
load_entry_point('ykdl==1.6.2', 'console_scripts', 'ykdl')()
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\site-packages\c
ykdl\__main__.py", line 173, in main
info = parser(u)
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\site-packages\y
kdl\extractor.py", line 24, in parser
info = self.prepare()
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\site-packages\y
kdl\extractors\youku.py", line 100, in prepare
data = json.loads(get_content('https://ups.youku.com/ups/get.json?' + urlenc
ode(params)))
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\site-packages\y
kdl\util\html.py", line 67, in get_content
response = urlopen(req)
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\urllib\request.
py", line 223, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\urllib\request.
py", line 526, in open
response = self._open(req, data)
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\urllib\request.
py", line 544, in _open
'_open', req)
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\urllib\request.
py", line 504, in _call_chain
result = func(*args)
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\urllib\request.
py", line 1361, in https_open
context=self._context, check_hostname=self._check_hostname)
File "C:\Users\i\AppData\Local\Programs\Python\Python36-32\lib\urllib\request.
py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10060] 由于连接方在一段时间后没
有正确答复或连接的主机没有反应,连接尝试失败。>
不行 只能下载前6分钟
本来就不行,又没说解决了。
使用https://acs.youku.com/h5/mtop.youku.play.ups.appinfo.get/1.1接口,加上cookies,计算sign,获取1080P都没有问题,已经实现了
@HuShanquan3 能具体说下怎么弄吗?
似乎Youku已经盯上了本项目。在几个月前,有一个自称是阿里的人联系过我,希望我删除Youku的代码。由于我几乎不看邮件,所以被忽略了。
看来他们是用了其他手段来保护他们的数据。
是否需要引入混淆/还是pyc来保护我们的成果?
但是混淆没意义啊,除非你不开源。 而且大多数时候,这条默认的 cna 就没用到过。
好像又可以了
现在亲测可用. Annie 也可以了
短暂恢复了一下,现在又不行了
短暂恢复了一下,现在又不行了
是的 我也是发现