you-get 命令不能下载 B 站视频了吗?

2018-01-04 22:24:54 +08:00
 zdd42sh
you-get https://www.bilibili.com/video/av17732514/ ~
you-get: [error] oops, something went wrong.
you-get: don't panic, c'est la vie. please try the following steps:
you-get: (1) Rule out any network problem.
you-get: (2) Make sure you-get is up-to-date.
you-get: (3) Check if the issue is already known, on
you-get: https://github.com/soimort/you-get/wiki/Known-Bugs
you-get: https://github.com/soimort/you-get/issues
you-get: (4) Run the command with '--debug' option,
you-get: and report this issue with the full output.
这是什么情况
18347 次点击
所在节点    Python
17 条回复
402645707
2018-01-04 22:53:17 +08:00
Run the command with '--debug' option 贴下 debug 信息吧
话说为什么不试试 bilibili 助手的 chrome 扩展呢
chnyang
2018-01-05 09:13:44 +08:00
我之前也是过一段时间不能,后来我用火狐登录了一次 B 站就可以了, 但是具体原因是不是这个 我也说不清
minato
2018-01-05 09:27:02 +08:00
直接在链接后面加 jj 就可以下载
uuair
2018-01-05 12:10:18 +08:00
我不懂原理是什么,但总觉得没有 youtube-dl 好用。。。很多 porn 的电影 you-get 都下载不了
funagi
2018-01-06 20:03:24 +08:00
@minato #3 惊了,实测可以,这个参数是怎么得来的?
gdky005
2018-01-07 19:39:51 +08:00
@funagi 给个例子吧,我直接加 jj 好像不行哎。

原始地址是:you-get 'https://www.bilibili.com/video/av17961420

you-get 'https://www.bilibili.com/video/av17961420/jj

应该是什么呢?
funagi
2018-01-07 19:42:54 +08:00
@gdky005 #6

```
$ you-get.exe "https://www.bilibili.com/bangumi/play/ep115237" jj


$ you-get.exe --version
you-get: version 0.4.1011, a tiny downloader that scrapes the web.
```
funagi
2018-01-07 19:44:30 +08:00
@gdky005 #6

试了一下,ep 可以,av 还是不行,GG
gdky005
2018-01-07 20:21:28 +08:00
@funagi
you-get "https://www.bilibili.com/bangumi/play/ep115237" jj

you-get: [error] oops, something went wrong.
you-get: don't panic, c'est la vie. please try the following steps:
you-get: (1) Rule out any network problem.
you-get: (2) Make sure you-get is up-to-date.
you-get: (3) Check if the issue is already known, on
you-get: https://github.com/soimort/you-get/wiki/Known-Bugs
you-get: https://github.com/soimort/you-get/issues
you-get: (4) Run the command with '--debug' option,
you-get: and report this issue with the full output.
------------------------------------------------------------


好奇怪 ,我用自己的 mac, 阿里的服务器,google 的服务器都不行。 就你刚 发的那个地址,只出现了一个信息,然后就断开了。
gdky005
2018-01-07 20:23:05 +08:00
知道问题了,多谢,看过段时间可以不。
lalalalalala
2018-01-08 15:42:13 +08:00
亲测,这个可以完美解决问题。
https://github.com/soimort/you-get/pull/2555/commits
note286
2018-01-12 08:43:06 +08:00
我现在也下载不了 av 的 b 站视频了,有人知道怎么回事吗?可以修复吗?为什么 you-get 把 issue 功能关闭了,都没有渠道反馈问题了。
note286
2018-01-12 09:27:49 +08:00
@lalalalalala 非常感谢,现在都要手动打补丁了,哈哈哈
lalalalalala
2018-01-12 13:54:40 +08:00
@note286 对呀,我们又不能总等着人家更新。
note286
2018-01-12 18:05:31 +08:00
@lalalalalala 只要能用就好,也不是很麻烦
Humilion
2018-01-13 23:41:15 +08:00
@lalalalalala 请问这个要怎么使用?
speedbird
2018-01-16 14:42:46 +08:00
@Humilion 其实就是在 bilibili.py 这个文件中的 70 行,get_content(api_url) 改成 get_content(api_url, headers={'referer': self.url, 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36'})

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/420171

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX