Comments (4)
对,大佬说的没错,早上看了一下,的确视频下载地址源码中就有。
但是有个问题就是必须登录后才能看720P,1080P的视频,所以得带上登录后的cookie并且cookie中添加CURRENT_QUALITY=80字段(1080p:80;720p:64;480p:32;360p:15),然后请求得到的源码中就是对应的清晰度的视频地址。
不好意思,这么久才回复你。
哈哈~总之感谢你的反馈和支持👍😄 @BeanWei
以前b站有一个开放api接口可以申请,不过去年关闭了,用申请到的token也可以,但是现在没有token要获取cookie只能登陆,B站用的极验的验证码,所以我个人的破解方法是用selenium,虽然比较臃肿但是技术有限只能想到这一个,selenium登陆之后直接获取页面cookie,里面只有两个三个有用的,SESSDATA, DedeUserID和DedeUserID_ckMd5,另外登陆之后可以添加番剧下载功能,可以看一下我前几天写的一个BiliBiliDownloader,quanlity在登陆之后直接放在链接里面请求就好了,没必要加到cookie里面,番剧的参数拼接我用穷举法试出来了- - 建议加一个多线程,要不然多P视频下载很慢
from bilibili_video_download.
对,大佬说的没错,早上看了一下,的确视频下载地址源码中就有。
但是有个问题就是必须登录后才能看720P,1080P的视频,所以得带上登录后的cookie并且cookie中添加CURRENT_QUALITY=80字段(1080p:80;720p:64;480p:32;360p:15),然后请求得到的源码中就是对应的清晰度的视频地址。
不好意思,这么久才回复你。
哈哈~总之感谢你的反馈和支持:+1::smile: @BeanWei
from bilibili_video_download.
这个发现很Nice,👍 💯 @Henryhaohao
from bilibili_video_download.
对,大佬说的没错,早上看了一下,的确视频下载地址源码中就有。
但是有个问题就是必须登录后才能看720P,1080P的视频,所以得带上登录后的cookie并且cookie中添加CURRENT_QUALITY=80字段(1080p:80;720p:64;480p:32;360p:15),然后请求得到的源码中就是对应的清晰度的视频地址。
不好意思,这么久才回复你。
哈哈~总之感谢你的反馈和支持👍😄 @BeanWei以前b站有一个开放api接口可以申请,不过去年关闭了,用申请到的token也可以,但是现在没有token要获取cookie只能登陆,B站用的极验的验证码,所以我个人的破解方法是用selenium,虽然比较臃肿但是技术有限只能想到这一个,selenium登陆之后直接获取页面cookie,里面只有两个三个有用的,SESSDATA, DedeUserID和DedeUserID_ckMd5,另外登陆之后可以添加番剧下载功能,可以看一下我前几天写的一个BiliBiliDownloader,quanlity在登陆之后直接放在链接里面请求就好了,没必要加到cookie里面,番剧的参数拼接我用穷举法试出来了- - 建议加一个多线程,要不然多P视频下载很慢
穷举法 厉害了
from bilibili_video_download.
Related Issues (20)
- AttributeError: 'NoneType' object has no attribute 'group' HOT 2
- imageio.ffmpeg.download() has been deprecated
- 清晰度解析问题 HOT 2
- 闪退问题
- 能下4K的视频吗
- 有关ffmpeg的安装问题,是否可以手动安装? HOT 3
- Fgh
- 无意冒犯,README 非得弄个马老师的视频么
- 现在B站启用BV号.请问怎么解决这个办法呢 HOT 2
- GUI程序报错,需要更改一个导包的问题
- pip安装了依赖包后,显示还是缺少这些依赖包。我补装后还是显示缺失
- 下载不了
- 要求的python版本是多少,3.11报错了 HOT 1
- 充电视频爬取可能
- 東鄉1
- q
- 1
- File "bilibili_video_download-GUI.py", line 270, in <module>
- ImportError: cannot import name 'Mapping' from 'collections' HOT 3
- 建议:GitHub仓库中图片无法展示问题处理 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bilibili_video_download.