• Stars
    star
    364
  • Rank 117,101 (Top 3 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

哔哩哔哩视频下载器 | Yet another video downloader for Bilibili

Mimi Downloader

英文/English

基于 Node.js 和 Electron 开发的 Bilibili 视频、弹幕下载器。

功能

目前实现的功能:

  • 根据视频地址查询 aid 和 cid 以及视频详细信息
  • 根据视频 cid 获取视频和弹幕文件的下载地址
  • 下载视频(.flv.mp4)和弹幕文件(.xml.ass),支持断点续传

使用方法

你需要安装 GitNode.js(以及 npm)来运行本程序。
本程序的一个重要依赖是 Electron,如果你所在的网络环境受到限制,请先设置如下环境变量,再执行后面的命令,以通过镜像安装之:

export ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/" # 一般的 *NIX 命令行
set ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ # 使用 Windows CMD 命令行
$env:ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/" # Windows PowerShell

在命令行输入:

# 克隆这个仓库
git clone https://github.com/stevenjoezhang/bilibili-downloader.git
# 进入目录
cd bilibili-downloader
# 安装依赖
npm install
# 启动!
npm start

如果一切正常,会打开一个名为「Mimi Downloader」的新窗口。输入视频链接(例如 https://www.bilibili.com/video/BV1Lx411a7NQ ),按照提示即可下载视频。

对于分为多个 flv 片段的视频,下载完成后,可以使用 ffmpeg 将其合并为一个文件:

name=11090110
# 将 11090110 替换为视频文件名
ffmpeg -f concat -safe 0 -i <(for f in $(ls $name-*.flv | sort -n); do echo "file '$PWD/$f'"; done) -c copy $name.flv

https://trac.ffmpeg.org/wiki/Concatenate

相关项目

如果你需要更为强大的命令行工具,那么以下仓库或许有帮助。它们均使用了和本项目完全相同的 API 调用方式,不需要手动设置 Cookie 或 playurl。

这里还有一些其它的库和浏览器插件供参考。

许可证

GNU General Public License v3
http://www.gnu.org/licenses/gpl-3.0.html

Legal Issues

This software is distributed under the GPL-3.0 license.

In particular, please be aware that

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

Translated to human words:

In case your use of the software forms the basis of copyright infringement, or you use the software for any other illegal purposes, the authors cannot take any responsibility for you.

We only ship the code here, and how you are going to use it is left to your own discretion.

待实现

  • 允许用户开始/暂停下载
  • 显示发送弹幕的用户信息

More Repositories

1

live2d-widget

把萌萌哒的看板娘抱回家 (ノ≧∇≦)ノ | Live2D widget for web platform
JavaScript
6,964
star
2

mimi-captcha

WordPress 汉字验证码插件 | A WordPress CAPTCHA plugin supports Chinese chars
PHP
18
star
3

hearthstone-deck

炉石卡组代码解析 & iframe 展示 | Hearthstone deckstring parser written in Node.js
JavaScript
13
star
4

video-thumbnail

生成视频缩略图(CSS Sprite) | Creating video thumbnails with ffmpeg and python
Python
11
star
5

marvel-themed-intro

制作漫威风格的电影片头 | Creating the Marvel studios intro with OpenCV
Python
10
star
6

mmp-build

试试用 Markdown 和 LaTeX 写论文吧 | Mimi Markdown Paper Builder
TypeScript
7
star
7

canvas-matrix.js

Canvas 实现《黑客帝国》特效 | JavaScript based "The Matrix" like implementation
JavaScript
6
star
8

awesome-generator

A curated list of awesome generators (mostly for Chinese text)
5
star
9

heavens-above

Heavens Above 爬虫 | Scripts for scraping the Heavens Above website
JavaScript
5
star
10

osmos.io

Multi-player Osmos game
JavaScript
4
star
11

fractal-tree

将 @chbpku 老师的分形树卷出新的自由度 (WIP)
JavaScript
3
star
12

hearthstone-deck-php

炉石卡组代码解析 | Hearthstone deckstring parser written in PHP
CSS
3
star
13

balloon.js

CSS3 彩色气球特效 | Multi-color balloons expanding and flying up from the bottom of your screen
JavaScript
2
star
14

mimi-server

A simple http server
JavaScript
2
star
15

stevenjoezhang

2
star
16

stevenjoezhang.github.io

HTML
2
star
17

nixie

Nixie tubes clock (Arduino shield)
C++
2
star
18

CUPT-Seismograph

CUPT 地震仪,通过 Arduino 串口进行数据处理 | Reading analog signals via Arduino serial ports
Python
2
star
19

hass-iotbull

Bull IoT for Home Assistant
Python
1
star
20

youtube-extract

Extract YouTube download URL, up to 4K resolution
HTML
1
star
21

markov-music

Markov music generator based on MIDI files (WIP)
JavaScript
1
star