youku-lixian icon indicating copy to clipboard operation
youku-lixian copied to clipboard

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

Open ankanch opened this issue 7 years ago • 5 comments

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

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

ankanch avatar Mar 20 '17 13:03 ankanch

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

runninggoat avatar Apr 04 '17 03:04 runninggoat

soga

在 2017年4月4日 上午11:31,runninggoat [email protected]写道:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iambus/youku-lixian/issues/93#issuecomment-291384167, or mute the thread https://github.com/notifications/unsubscribe-auth/ADPo2EYydmSVHoasOwgwhnSfia9s4vWdks5rsbmggaJpZM4MibGi .

-- Best regards,

*Long Zhang (Kanch) http://akakanch.com *@ Chengdu University of Information Technology 2015 Computer Science Major

Mail:[email protected] No.24 Block 1, Xuefu Road, Chengdu, Sichuan, China

ankanch avatar Apr 04 '17 03:04 ankanch

soga

ankanch avatar Apr 04 '17 03:04 ankanch

求更新~谢谢大神

zlzdp avatar May 20 '17 12:05 zlzdp

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

haifeng19cc avatar Oct 10 '17 12:10 haifeng19cc