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

GetVideoUrl/biliDownLoad.py HTTP Error: 400 #11

Open
qyvlik opened this issue Mar 10, 2016 · 2 comments
Open

GetVideoUrl/biliDownLoad.py HTTP Error: 400 #11

qyvlik opened this issue Mar 10, 2016 · 2 comments

Comments

@qyvlik
Copy link

qyvlik commented Mar 10, 2016

貌似 b 站姥爷知道了,修改了接口。

如下为报错提示。

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>D:\用户目录\Desktop\bilibiliUrlDownLoad.py http://www.bil
ibili.com/video/av4061686/
['appkey', 'id', 'page', 'type']
appkey=85eb6835b0a1034e&id=4061686&page=1&type=json&sign=64abb11c3ae20734d8d5f6e
c75ae85be
['appkey', 'cid', 'otype', 'quality', 'type']
appkey=85eb6835b0a1034e&cid=None&otype=json&quality=4&type=mp4&sign=ac49b3ee2239
625143ae70924121a357
Traceback (most recent call last):
  File "D:\用户目录\Desktop\bilibiliUrlDownLoad.py", line 76, in <module>
    media_urls = GetBilibiliUrl(sys.argv[1])
  File "D:\用户目录\Desktop\bilibiliUrlDownLoad.py", line 41, in GetBilibiliUrl
    resp_media = urlfetch(url_get_media+sign_1)
  File "D:\用户目录\Desktop\bilibiliUrlDownLoad.py", line 70, in urlfetch
    return urllib2.urlopen(req).read()
  File "D:\Program Files\Python27\lib\urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "D:\Program Files\Python27\lib\urllib2.py", line 437, in open
    response = meth(req, response)
  File "D:\Program Files\Python27\lib\urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "D:\Program Files\Python27\lib\urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "D:\Program Files\Python27\lib\urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "D:\Program Files\Python27\lib\urllib2.py", line 558, in http_error_defau
lt
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 400: Bad Request

C:\Users\Administrator>
@cnbeining
Copy link
Contributor

自己的KEY一夜之间全死了。

@qyvlik
Copy link
Author

qyvlik commented Mar 18, 2016

在某位司机的修复cnbeining/Biligrab@55ecddd

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

2 participants