sdvcrx / pan-baidu-download

百度网盘下载脚本
MIT License
435 stars 103 forks source link

AttributeError with links with password #11

Closed cnxsoft closed 9 years ago

cnxsoft commented 9 years ago

Thanks for the great script, but there's an error when downloading from pages asking for a password.

For example:

python bddown_cli.py show http://pan.baidu.com/s/1kTrCcMr --dir=~/Downloads Please input this sharing password xpef Traceback (most recent call last): File "bddown_cli.py", line 53, in execute_command() File "bddown_cli.py", line 49, in execute_command commandscommand File "/media/hdd/edev/sandbox/pan-baidu-download/command/show.py", line 15, in show info = pan.get_dlink(url) File "/media/hdd/edev/sandbox/pan-baidu-download/bddown_core.py", line 97, in get_dlink js = self._get_js(link, secret) File "/media/hdd/edev/sandbox/pan-baidu-download/bddown_core.py", line 88, in _get_js self.verify_passwd(req.url, secret) File "/media/hdd/edev/sandbox/pan-baidu-download/bddown_core.py", line 153, in verify_passwd errno = mesg.get('errno') AttributeError: 'function' object has no attribute 'get'

The password for this link is xpef

sdvcrx commented 9 years ago

Fixed, but it don't support downloading folder now. So I recommand this to download folder.