Coder Social home page Coder Social logo

Comments (4)

dylech30th avatar dylech30th commented on August 28, 2024 1

对,大佬说的没错,早上看了一下,的确视频下载地址源码中就有。
但是有个问题就是必须登录后才能看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.

Henryhaohao avatar Henryhaohao commented on August 28, 2024

对,大佬说的没错,早上看了一下,的确视频下载地址源码中就有。
但是有个问题就是必须登录后才能看720P,1080P的视频,所以得带上登录后的cookie并且cookie中添加CURRENT_QUALITY=80字段(1080p:80;720p:64;480p:32;360p:15),然后请求得到的源码中就是对应的清晰度的视频地址。
不好意思,这么久才回复你。
哈哈~总之感谢你的反馈和支持:+1::smile: @BeanWei

from bilibili_video_download.

BeanWei avatar BeanWei commented on August 28, 2024

这个发现很Nice,👍 💯 @Henryhaohao

from bilibili_video_download.

lisasu-g avatar lisasu-g commented on August 28, 2024

对,大佬说的没错,早上看了一下,的确视频下载地址源码中就有。
但是有个问题就是必须登录后才能看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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.