Skip to content
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

百度网盘登陆报错 #117

Open
hulvyou opened this issue Jun 4, 2017 · 7 comments
Open

百度网盘登陆报错 #117

hulvyou opened this issue Jun 4, 2017 · 7 comments

Comments

@hulvyou
Copy link

hulvyou commented Jun 4, 2017

-- check_login fail

login failes

! Error 120021: 登录失败,重新登录

两种报错

@nuomi1
Copy link

nuomi1 commented Jun 4, 2017

临时解决方案:使用 Chrome 隐身模式登录百度网盘,获取 Cookie。

@hulvyou
Copy link
Author

hulvyou commented Jun 4, 2017

@nuomi1 请问百度云盘不打开播放的前提下,可以获取到视频播放时长吗?

@nuomi1
Copy link

nuomi1 commented Jun 4, 2017

@hulvyou 网页?官方(Windows、macOS 等)客户端?这个脚本?

@hulvyou
Copy link
Author

hulvyou commented Jun 4, 2017

@nuomi1 用的是您这个脚本pan.baidu.com.py 可以获取到视频播放时长吗?
同时在使用转存别人分享的时候出现了如下错误
Traceback (most recent call last):
File "pan.baidu.com.py", line 3610, in
main(argv)
File "pan.baidu.com.py", line 3606, in main
handle_command(comd, xxx)
File "pan.baidu.com.py", line 3316, in handle_command
url = re.search(r'(http://.+?.baidu.com/.+?)(#|$)', xxx[0]).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

@PeterDing
Copy link
Owner

@hulvyou
把要转存的链接的 https 换成 http

脚步无法获取视频时长。

@hulvyou
Copy link
Author

hulvyou commented Jun 4, 2017

@PeterDing 非常感谢,请问脚本下载文件的时候可以指定存放本地目录吗

@PeterDing
Copy link
Owner

@hulvyou 不可以,下载文件(文件夹)保存在运行脚本的当前目录。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants