Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

177 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A new danmaku scraper developed by Go

中文

You can run as CLI to scrape danmaku locally and save as xml file. Or run as a web server to provide DanDanPlay API and enjoy with your compatible player.

Matching may not so precisely and waiting for optimization. But basically usable.

My goal is Building a lightweight and stateless(real-time) danmaku server.

Milestone

Phase 1: offering a danmaku scraper through CLI

The following 4 platforms are not fully tested. No special season matching support by now.

Get a better match with Emby API enabled.

  • complete danmaku scrape CLI
    • scrape by BV id of Bilibili
    • save as ASS file
    • scrape by album of iqiyi
    • scrape by show of youku
  • bilibili scrape and DanDan API match
  • iqiyi scrape and DanDan API match
  • youku scrape and DanDan API match
  • tencent scrape and DanDan API match
  • other platforms...

Phase 2: supporting DanDanPlay API

  • /match
  • /comment/{id}
  • /search/anime
  • /bangumi/{id}

Phase 3: offering management APIs and web UI

Priority is low.

Installation

Run as CLI:

git clone https://github.com/lostars/danmaku-tool.git
cd danmaku-tool
make build

Run as docker:

docker pull ghcr.io/lostars/danmaku-tool:latest

Configuration

default config file in ~/.config/danmaku-tool/config.yaml or same location as the executable file.

You can check the full config here.

Usage

CLI

danmaku -h for details.

You can run danmaku completion to generate autocompletion for your shell before start.

scrape danmaku:

danmaku scrape <id> --platform=bilibili

id

WebServer

danmaku server -c /path/to/your/config.yaml -p [port] to start a web server. Or u can start as a docker from above.

docker run -p 8089:8089 --name danmaku \
-v /path/to/your/config.yaml:/app/config.yaml \
ghcr.io/lostars/danmaku-tool:latest

Web API

  • /match
  • /comment/{id}
  • /search/anime
  • /bangumi/{id}

API above is enough to most scenarios currently.

Reference

About

A lightweight danmaku scraper

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages