Giter Site home page Giter Site logo

meumy-live-showcase's Introduction

Meumy直播弹幕数据展示页

本项目分为静态网页部分和数据处理服务器两部分,纯业余。

静态网页

使用了bootstrap5框架、vue.jsechart.js

数据处理服务器

live.py

使用了bilibili-api这个包把直播弹幕数据记录到sqlite数据库中,可以同时监听多个直播间的数据。

Msg_db.py

一个记录弹幕、礼物、直播时间信息的sqlite数据库的简易类。会把每天的数据分别存到不同的文件中。

danmu_analyse.py

每十分钟扫描今日的弹幕数据库,如果发现已开播就对弹幕进行分析,生成用于网页显示的json数据文件。

  • 使用scipy包对弹幕量进行平滑以及峰值识别
  • 使用jieba包进行中文分词和关键词提取
    • 用正则表达式过滤掉一些垃圾弹幕,比如ohhhhhhhh
    • 其中使用自定义词典user_dict.txt对分词进行了一点点优化
    • 分词部分还需要调整,有些词无法识别,需要经常维护自定义词典
    • 关键词识别不太适用于网络用语较多的环境,关键词全是“哈哈哈”,我也没啥办法
  • 用正则表达式识别打call弹幕,从而识别出up唱歌的时段

meumy-live-showcase's People

Contributors

k-bai 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.