Code Monkey home page Code Monkey logo

bilibili-api-client's Introduction

Bilibili 视频下载工具

使用

需要 node >= 16

推荐使用 pnpm 代替 npm

npm install
npm run start

控制台会出现二维码,使用哔哩哔哩手机APP扫码登陆。

随后输入BV号,即可下载视频。(已支持完整网址、多P下载、新番下载、直播下载)

FFmpeg

默认会从 bin 文件夹查找 ffmpeg 的可执行文件,规则是 ffmpeg_${platform}_${arch}${binExt},如果没有找到则直接使用命令 ffmpeg。

目前已自带 windows x64 和 macos arm64 版本。编译的参数是 ./configure --disable-encoders --disable-decoders --disable-filters --disable-devices --disable-bsfs --disable-hwaccels,因为只是用来合并视频音频,所以不需要其他功能,精简了大小

港澳台新番

在根目录下创建 .env 文件,然后写:

API_PROXY_HOST=api.your-bilibili-proxy.com

程序会使用这个域名请求

测试视频

网页播放器(测试)

提供了一个页面可以直接看哔哩哔哩的视频,需要运行一个 node 服务,用来代理请求。

此外,dan-player.html 可以播放本地视频,并且请求 弹弹play 的api获得弹幕

# 构建播放器前端
cd src/web-player
npm install
npm run build

# 运行服务
cd ../..
npm install
npm run server-debug

bilibili-api-client's People

Contributors

judgeou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.