tychxn / baidu-wangpan-parse Goto Github PK
View Code? Open in Web Editor NEW获取百度网盘分享文件的下载地址
License: MIT License
获取百度网盘分享文件的下载地址
License: MIT License
Hi,
I am trying downloading a large file from Baidu. After running your script, I got a link succesfully, however, when I use this link I got an error
{"error_code":31090,"error_msg":"package is too large","request_id":569963062413958513}
Could you have a look on this issue? Thanks
WY
C:\Users\alex1\Downloads\baidu-wangpan-parse-master\baidu-wangpan-parse-master>python baidu_wangpan_parse.py -f https://pan.baidu.com/s/1kWsBk4hME_vMo-2huAPJ-A 1z5l
本人想通过QQ做一个远程下载服务器
但是验证码的问题就很烦(QQ网页版传不了图片)
所以想问这个问题
请教一下,我想通过抓包发现的
https://pan.baidu.com/api/filemanager
接口来封装一个删除百度网盘文件的api接口,但即使我构造了跟浏览器一模一样的请求头和cookie等信息,仍然会报错(Google得知为参数错误),请问您有没有什么指导意见?期待您的回复
直接执行readme中的测试链接可获得正常下载地址,但是执行类似如下:
python main.py https://pan.baidu.com/s/1K_peE6V6FmW1w0sr0sNZyg
或:
python main.py https://pan.baidu.com/s/18BImim5Y46wfH5JcOlus0Q
等资源,则报如下错误:
Exception: {'errno': 118, 'request_id': 8154993349298358701, 'server_time': 1545115717}
直接下载是可以的,怎么会报118没有权限的错误?
貌似百度改东西导致你的不能用了。
大神,用不了了是怎么肥四
报错内容:
('Err_no\xef\xbc\x9a', u'2')
输入“python baidu_wangpan_parse.py -h”,后报错。具体内容大概是:
第七行,也就是代码开始的地方就报错。
Start downloading the verification code...
Please enter the verification code (return change):xu9k
Exception: list index out of range
Traceback (most recent call last):
File "baidu_wangpan_parse.py", line 219, in <module>
main(options)
File "baidu_wangpan_parse.py", line 209, in main
link = wangpan.get_download_link()
File "baidu_wangpan_parse.py", line 190, in get_download_link
return js['dlink'] if self.is_folder else js['list'][0]['dlink']
IndexError: list index out of range
Traceback (most recent call last):
File "main.py", line 4, in
from pan import BaiduPan
File "/home/app/baidu/baidu-wangpan-parse/pan.py", line 17, in
from util import load_cookies, save_image, open_image
File "/home/app/baidu/baidu-wangpan-parse/util.py", line 9, in
from Crypto.Cipher import PKCS1_v1_5 as Cipher_pkcs1_v1_5
ImportError: cannot import name PKCS1_v1_5
Exception: 'dlink'
Traceback (most recent call last):
File "baidu_wangpan_parse.py", line 219, in
main(options)
File "baidu_wangpan_parse.py", line 209, in main
link = wangpan.get_download_link()
File "baidu_wangpan_parse.py", line 190, in get_download_link
return js['dlink'] if self.is_folder else js['list'][0]['dlink']
KeyError: 'dlink'
vcode-login已經有用翻譯打簡字輸入
之後就跑出120021,有去查代碼
},
"120021" : {
msg : "登錄失敗,請在彈出的窗口操作,或重新登錄",
field : ""
但是我很確定config裡面我帳號密碼都有正確,甚至辦了新的百度帳號,在chrome可以登入
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.