-
Notifications
You must be signed in to change notification settings - Fork 115
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
get_file_info_by_url方法失效,导致无法下载及临时解决办法 #74
Labels
bug
Something isn't working
Comments
nhnhwsnh
changed the title
get_file_info_by_url方法失效,导致无法下载
get_file_info_by_url方法失效,导致无法下载及临时解决办法
Mar 30, 2022
能给一些测试用的文件链接么,我测试了几个链接和文件夹,似乎都下载成功了,没法复现🤔。 |
https://wwu.lanzoui.com/b030us25e密码cfr3 目前,我这边下载的内容多是txt小说,基本都有websign的(大于90%) 您说的,可能是在某些条件下触发的 |
https://wwu.lanzoui.com/b030us25e密码cfr3
目前,我这边下载的内容多是txt小说,基本都有websign的(大于90%)
您说的对,可能是在某些条件下触发的
可以这样解决
if 'websign' in first_page:
websign= ....
.....
else:
sign=.....
当然这只是个建议
…------------------ 原始邮件 ------------------
发件人: "zaxtyson/LanZouCloud-API" ***@***.***>;
发送时间: 2022年3月30日(星期三) 下午3:55
***@***.***>;
***@***.******@***.***>;
主题: Re: [zaxtyson/LanZouCloud-API] get_file_info_by_url方法失效,导致无法下载及临时解决办法 (Issue #74)
能给一些测试用的文件链接么,我测试了几个链接和文件夹,似乎都下载成功了,没法复现🤔。
在我测试文件链接中,first_page 页面并没有出现 var websign ,可能是官方加了什么验证,达到什么条件才能触发
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
确实URL不一样,后面跟了一个 |
zaxtyson
added a commit
to zaxtyson/LanZouCloud-CMD
that referenced
this issue
Apr 2, 2022
zaxtyson
added a commit
to zaxtyson/LanZouCloud-CMD
that referenced
this issue
Apr 2, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述:down_dir_by_url, down_file_by_url等下载方法均失效
解决思路:
手动请求了https://wwu.lanzoui.com/fn?UzVa.......mB 地址后,服务器返回内容如下
定位到 .........\site-packages\lanzou\api\core.py的get_file_info_by_url方法,修改相应代码
在514行后,插入如下内容
结果:截止提交issue时,修改过的代码,可以下载~
The text was updated successfully, but these errors were encountered: