ly0 / baidupcsapi

百度网盘api
MIT License
1.2k stars 235 forks source link

需要修正重定向连接BUG. #54

Open x5w46fxdx opened 7 years ago

x5w46fxdx commented 7 years ago

[-] shareid, uk = None, None [+] shareid, uk = '', ''

不重定向连接! 报错函数_verify_shared_file,None类型不能连接字符串 https://pan.baidu.com/s/1qXAGyba

重定向404错误连接无影响正常运行. InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html InsecureRequestWarning) https://pan.baidu.com/s/1gfce3sB https://pan.baidu.com/error/404.html

ly0 commented 7 years ago

给个重现参考代码?

x5w46fxdx commented 7 years ago

pcs.save_share_list('https://pan.baidu.com/s/1qXAGyba','/','') 在截取url的时候因为没有重定向到带有shareid uk的链接,而造成正则获取 shareid, uk 失败而没有赋值 shareid,uk.

x5w46fxdx commented 7 years ago

save_share_list调用次数过多,百度系统封杀IP的所有分享链接 ,造成转404以及url不进行重定向. 发现被封杀次数调用接口 550次.