Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

down_file_by_url相关Bug #36

Closed
zhbzhbzhbz opened this issue Aug 7, 2020 · 3 comments
Closed

down_file_by_url相关Bug #36

zhbzhbzhbz opened this issue Aug 7, 2020 · 3 comments

Comments

@zhbzhbzhbz
Copy link

不知道是不是蓝奏云又更新了,这三个都是
https://www.lanzous.com/i301ape
https://www.lanzous.com/i31su1i
https://www.lanzous.com/i31tsne

Traceback (most recent call last):
  File "D:\Program Files\Python38\lib\site-packages\lanzou\api\core.py", line 933, in down_file_by_url
    info = self.get_durl_by_url(share_url, pwd)
  File "D:\Program Files\Python38\lib\site-packages\lanzou\api\core.py", line 529, in get_durl_by_url
    file_info = self.get_file_info_by_url(share_url, pwd)
  File "D:\Program Files\Python38\lib\site-packages\lanzou\api\core.py", line 456, in get_file_info_by_url
    para = re.search(r'<iframe.*?src="(.+?)"', first_page).group(1)  # 提取下载页面 URL 的参数
AttributeError: 'NoneType' object has no attribute 'group'
@zaxtyson
Copy link
Owner

zaxtyson commented Aug 9, 2020

这个 URL 应该是无效的吧,文件取消,网页显示来晚啦...文件取消分享了,这个链接显示 文件不存在,或已删除😂

if '文件取消' in first_page:

小问题,这就加上

if '文件取消' in first_page or '文件不存在' in first_page:

@zaxtyson
Copy link
Owner

zaxtyson commented Aug 9, 2020

已经fix,请查看 dev分支
(>人<;)等积累一些 bug 再更新 master,感觉更新太频繁了

@zhbzhbzhbz
Copy link
Author

已经fix,请查看 dev分支
(>人<;)等积累一些 bug 再更新 master,感觉更新太频繁了

嗯嗯可以的~赞!

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

No branches or pull requests

2 participants