Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

无法下载优酷视频,提醒AttributeError: 'NoneType' object has no attribute 'group' #93

Open
ankanch opened this issue Mar 20, 2017 · 5 comments

Comments

@ankanch
Copy link

ankanch commented Mar 20, 2017

无法下载优酷视频,下载优酷视频提示如下错误:

AttributeError: 'NoneType' object has no attribute 'group'

@runninggoat
Copy link

那是因为
id2 = re.search(r"var\s+videoId2\s*=\s*'(\S+)'", page).group(1)
这一行已经匹配不到了,就是这个视频的id在网页中已经找不到了
貌似是由于youku已经更换了视频加载的方式
毕竟作者在好几年前写的,现在更新了也没办法,还是star一下表示感谢!

@ankanch
Copy link
Author

ankanch commented Apr 4, 2017 via email

@ankanch
Copy link
Author

ankanch commented Apr 4, 2017

soga

@zlzdp
Copy link

zlzdp commented May 20, 2017

求更新~谢谢大神

@haifeng19cc
Copy link

虽然楼主的代码用不了,但是代码写的非常高端。 学习了。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants