{"id":13431220,"url":"https://github.com/Seyyu0015/BliveCharts","last_synced_at":"2025-03-16T11:31:21.685Z","repository":{"id":43050718,"uuid":"485691218","full_name":"Seyyu0015/BliveCharts","owner":"Seyyu0015","description":"基于matplotlib,BeautifulSoup的Bilibili直播数据统计分析工具","archived":false,"fork":false,"pushed_at":"2022-07-06T06:42:06.000Z","size":3697,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-23T02:02:07.850Z","etag":null,"topics":["bilibili","css","html","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Seyyu0015.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-26T08:06:13.000Z","updated_at":"2024-10-26T13:40:08.000Z","dependencies_parsed_at":"2022-09-19T10:31:58.384Z","dependency_job_id":null,"html_url":"https://github.com/Seyyu0015/BliveCharts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seyyu0015%2FBliveCharts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seyyu0015%2FBliveCharts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seyyu0015%2FBliveCharts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seyyu0015%2FBliveCharts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Seyyu0015","download_url":"https://codeload.github.com/Seyyu0015/BliveCharts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243862807,"owners_count":20360213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bilibili","css","html","python"],"created_at":"2024-07-31T02:01:01.428Z","updated_at":"2025-03-16T11:31:20.262Z","avatar_url":"https://github.com/Seyyu0015.png","language":"Python","funding_links":[],"categories":["直播相关工具"],"sub_categories":["直播脚本"],"readme":"# 哔哩哔哩直播图表\n## 简介\n这是一款在OBS内使用的直播插件，目前包含以下功能  \n* 观众互动排行  \n* 弹幕高频字分析\n## 观众互动排行\n### 简介\n连接到Bilibili直播间后，对直播间观众的互动行为进行量化统计并排名，之后以《我的世界》风格展示给观众。  \n### 使用效果展示  \n下方的“物品栏”中会显示贡献值前9的观众的头像和贡献值  \n![使用效果图](https://user-images.githubusercontent.com/103107612/169229142-e69fda12-539b-42a4-9fc0-c818ea056d6a.png)  \n视频展示:[《Minecraft》风格的“直播贡献榜”使用效果展示](https://www.bilibili.com/video/BV1jr4y1t71Q/)\n### 如何使用\n1. 在“config.py”文件中配置直播间ID  \n2. 打开“style.css”文件，复制全部内容  \n3. 打开OBS 添加“浏览器源” 勾选本地文件并选择“display_html.html”文件   \n    - 宽度： 740  \n    - 高度： 97  \n    - 自定义css：粘贴（第2步中复制的内容）  \n4. 点击“确定”插件就会出现在舞台内  \n5. 运行“main.py”  \n### 配置文件\n项目根目录中的“config.py”文件 (变量名 = 默认值 # 描述)\n* roomid = 8763308  # 直播间id，程序会连接到该直播间.(默认值=8763308)\n* rank_add_by_danmu = 1  # 每发送一个弹幕所增加的贡献值.(默认值=1)\n* free_gift = 1  # 免费礼物增加的贡献值.(默认值=1)\n* price = 100  # 礼物价值和增加贡献的比值.(默认值=100)\n* number = 9  # 排行榜显示个数.(默认值=9)\n\n\n\n## 弹幕高频字分析\n### 简介\n自动保存直播中的弹幕信息，统计每个汉字的出现频率，渲染为柱状图并保存  \n* danmusave/txt 保存弹幕文本的文件夹  \n* danmusave/png 保存柱状图的文件夹\n### 使用效果展示\n2022年5月13日的弹幕频率图  \n![弹幕频率图](https://user-images.githubusercontent.com/103107612/169229650-0c69052f-e3e6-430b-b12e-c15329780c04.png)  \n\n### 如何使用\n1. 修改项目根目录中的“config.py”文件  \n+ 使以下两项均为True (变量名 = 默认值 # 描述)  \n  - save_danmu = True # 是否保存弹幕(默认值=True)\n  - danmu_bar = True # 是否分析弹幕(默认值=True)\n+ 使“roomid”为想要连接的直播间\n   - roomid = 8763308  # 直播间id，程序会连接到该直播间。\n2. 运行“main.py”\n3. 生成的文本存档和柱状图会保存在相应目录内\n### 其他  \n* 可能因为爬取头像过于频繁导致暂时无法获取头像，数小时后恢复  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSeyyu0015%2FBliveCharts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSeyyu0015%2FBliveCharts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSeyyu0015%2FBliveCharts/lists"}