Coder Social home page Coder Social logo

danmaku's Introduction

使用方法

把需要的 av 號或是 ep 號 寫在 list/dataset.txt

個人上傳的話基本上用 av 號就可以了

如果是有限制地區,記得加上 # country : cn

再來是 bangumi 的部分,有些影片是一連串只有一個 av 號的,不同 ep 號

有 ep 號可以用 cookie 配上 bilibili-get 下載高清影片

但是卻無法下載每一個 episodes 的彈幕,要下載彈幕的話

可以用 api GetVideoInfo(aid, key, page)

aid 就是剛剛說到的,只有單獨一個 av 號

要怎麽指定哪一集呢,這個 api 有一個參數 page,就是用來指定這個參數的

所以透過 GetVideoInfo(aid, key, page = 2)

我們就能獲得第二集的 info,藉此獲得第二集的 cid

======================

有些 ep 號是連續的所以只需要知道第一集的 ep 號就能推算後面的號碼

記得要加上 # episodes : 12

12 代表 12 集

此時我們只需要填上第一集的 ep 號就可以了

======================

如果有跳過的地方可以加入寫成以下形式

但是必須加在 txt 的尾端

exclude (因爲有 # 所以會變大)

ep123456

ep23456

==========================

如果一個影集分成兩段可以寫成 (要空格)

ep123456 - ep23456

ep56789 - ep56790

但是總共的集數加起來必須和 episodes 一樣

================================

如果要下載 影片和彈幕可以用 download.py 裡面可以指定 cookie

彈幕和影片資訊會存成 pickle 檔

danmaku's People

Contributors

chenjunweii avatar

Watchers

James Cloos 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.