Code Monkey home page Code Monkey logo

acfunlivedb's Introduction

acfunlivedb

保存AcFun直播部分数据

编译安装

go install github.com/orzogc/acfunlivedb@master

运行依赖

  • sqlite3
  • 支持Linux、macOS、Windows和FreeBSD

用法

运行后会在本程序所在文件夹生成 acfunlive.db 数据库文件,本程序会自动爬取从运行时间开始的AcFun所有直播间的部分直播数据并保存到数据库里。

由于录播链接的有效性有时间限制,超时后需要重新查询,所以本程序不再自动更新和保存录播链接,需要用getplayback命令手动查询。

运行时可以输入以下命令:

listall 主播的uid 列出数据库里指定主播的所有直播数据,按照开播时间降序排列,可指定多个uid

list10 主播的uid 列出数据库里指定主播最近10次直播的数据,按照开播时间降序排列,可指定多个uid

getplayback liveID 根据直播的liveID查询AcFun官方的录播链接,注意不是所有直播都能查询到对应的录播链接,可指定多个liveID

quit 结束运行

acfunlivedb's People

Contributors

orzogc 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.