baidupcsapi icon indicating copy to clipboard operation
baidupcsapi copied to clipboard

需要修正重定向连接BUG.

Open x5w46fxdx opened this issue 8 years ago • 3 comments


[-] 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

x5w46fxdx avatar May 19 '17 08:05 x5w46fxdx

给个重现参考代码?

ly0 avatar May 19 '17 09:05 ly0

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

x5w46fxdx avatar May 19 '17 12:05 x5w46fxdx

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

x5w46fxdx avatar May 19 '17 14:05 x5w46fxdx