GithubHelp home page GithubHelp logo

ishuria / bilibili-subtitles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xadillax/bilibili-av

1.0 1.0 0.0 62 KB

This module is for getting bilibili subtitles via a certain av number and its page number.

License: GNU General Public License v2.0

bilibili-subtitles's Introduction

BILIBILI SUBTITLES

This module is for getting bilibili subtitles via a certain av number and its page number.

【这是一个根据 av 号和分页来获取 bilibili 弹幕的包】

INSTALLATION

$ npm install bilibili-subtitles

USAGE

Using function bilibili.get(av, [page], [callback]).

var bilibili = require("bilibili-subtitles");

bilibili.get(12999, function(err, subtitles) {
    console.log(err);
    console.log(subtitles);
});

If subtitles fetched successfully, subtitiles will be an array which contains elements that each is like:

{ text: '现在还有3人',
  seconds: 1426.1600341797,
  mode: 1,
  modeText: 'roll',
  fontSize: 25,
  color: 'ffffff',
  timestamp: 1398596421,
  pool: 0,
  poolText: 'normal',
  senderId: '8df339d5',
  subtitlesId: 446706589 }

text stands for subtitles text; seconds is its seconds which it appears; mode is subtitles mode which explained in modeText; fontSize is its size; color is its color; timestamp is the time when it submitted; pool is the subtitles pool which explained in poolText; senderId is the user who send this subtitles; subtitlesId is this subtitles id.

CONTRIBUTE

You're welcome to pull requests!

「雖然我覺得不怎麼可能有人會關注我」

bilibili-subtitles's People

Contributors

xadillax avatar

Stargazers

 avatar

Watchers

 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.