{"id":13431149,"url":"https://github.com/boxie123/Bilibili_GetReceivedGiftStream","last_synced_at":"2025-03-16T06:32:23.259Z","repository":{"id":49851871,"uuid":"486912754","full_name":"boxie123/Bilibili_GetReceivedGiftStream","owner":"boxie123","description":"登录并获取bilibili礼物流水统计表格","archived":false,"fork":false,"pushed_at":"2025-03-10T00:46:24.000Z","size":681,"stargazers_count":14,"open_issues_count":4,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-10T01:48:21.848Z","etag":null,"topics":["bilibili","bilibili-live","gift-stream","python","statistics"],"latest_commit_sha":null,"homepage":"https://play-live.bilibili.com/details/1673413318672","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boxie123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-29T09:26:09.000Z","updated_at":"2025-03-07T04:33:09.000Z","dependencies_parsed_at":"2023-11-11T01:31:43.913Z","dependency_job_id":"828fe805-c4bb-48a3-a087-f49fa7a7b624","html_url":"https://github.com/boxie123/Bilibili_GetReceivedGiftStream","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxie123%2FBilibili_GetReceivedGiftStream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxie123%2FBilibili_GetReceivedGiftStream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxie123%2FBilibili_GetReceivedGiftStream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxie123%2FBilibili_GetReceivedGiftStream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boxie123","download_url":"https://codeload.github.com/boxie123/Bilibili_GetReceivedGiftStream/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835952,"owners_count":20355611,"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","bilibili-live","gift-stream","python","statistics"],"created_at":"2024-07-31T02:01:00.888Z","updated_at":"2025-03-16T06:32:22.900Z","avatar_url":"https://github.com/boxie123.png","language":"Python","funding_links":[],"categories":["直播相关工具"],"sub_categories":["直播脚本"],"readme":"\u003cdiv align=\"center\"\u003e\n\n[![Bilibili_GetReceivedGiftStream](https://user-images.githubusercontent.com/74038190/212747903-e9bdf048-2dc8-41f9-b973-0e72ff07bfba.gif)](https://boxie123.github.io/Bilibili-GetReceivedGiftStream/)\n\n# Bilibili_GetReceivedGiftStream\n\n 登录并获取bilibili账号某段时间礼物流水数据，生成表格。\n\n![GitHub](https://img.shields.io/github/license/boxie123/Bilibili_GetReceivedGiftStream)\n![Python](https://img.shields.io/badge/Python-3.10+-blue)\n![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/boxie123/Bilibili_GetReceivedGiftStream?include_prereleases)\n\n[![qq group](https://img.shields.io/badge/QQ%E7%BE%A4-1054608979-hotpink)](https://jq.qq.com/?_wv=1027\u0026k=mEy0fIIq)\n\n\u003c/div\u003e\n\n## 功能列表\n\n1. 统计指定时间段的大航海记录（开通时间，用户名，uid），附表生成各大航海数量与总积分（xlsx格式）\n\n    例表：\n\n    表1：上舰时间\n\n    | ID   | UID      | 舰长              | 提督 | 总督 |\n    | ---- | -------- | ------------------- | ---- | ---- |\n    | 铂屑 | 35192025 | 2022-04-29 09:24:39 |      |      |\n\n    表2：积分计算\n\n    | ID   | UID      | 总积分 | 舰长 | 提督 | 总督 |\n    | ---- | -------- | ------ | ---- | ---- | ---- |\n    | 铂屑 | 35192025 | 1      | 1    | 0    | 0    |\n\n2. 统计指定时间段的大航海记录（用户，uid，大航海类型）。生成可直接导入 [BiliMessenger](https://github.com/Xinrea/BiliMessengerElectron)（私信群发助手）使用的数据列表（csv格式）\n\n3. 生成指定时间段收到所有礼物流水列表（用户，uid，礼物名，电池数），附表为（用户，uid，礼物名，数量）（xlsx格式）\n   \n   例表：\n\n   表1：电池数量\n\n    | ID     | UID      | 小花花(id:31036) | 辣条(id:1) | 这个好诶(id:31213) | 舰长(id:10003) | SUM  |\n    | ------ | -------- | ---------------- | ---------- | ------------------ | -------------- | ---- |\n    | hyt658 | 23262005 | 5                | 0          | 10                 |                | 15   |\n    | 铂屑 | 35192025 |                  |            |                    | 1380           | 1380 |\n\n    表2：数目\n\n    | ID     | UID      | 小花花(id:31036) | 辣条(id:1) | 这个好诶(id:31213) | 舰长(id:10003) |\n    | ------ | -------- | ---------------- | ---------- | ------------------ | -------------- |\n    | hyt658 | 23262005 | 5                | 2          | 1                  |                |\n    | 铂屑 | 35192025 |                  |            |                    | 1              |\n\n\n4. 同时生成上述三个文件\n\n*********************************\n\n## 注意事项\n\n\u003e [!CAUTION]\n\u003e 1. 由于本api仅提供**近180天**的数据，超出范围的数据均为0，请勿使用本程序查询过于久远的记录，防止造成误导。\n\u003e\n\u003e 1. 本程序会自动生成数个文件，分别为\n\u003e\n\u003e     - `bzcookies`\n\u003e\n\u003e     - `yyyy年mm月nn日至yyyy年mm月nn日礼物统计(大航海).xlsx/csv` \n\u003e\n\u003e     - `yyyy年mm月nn日至yyyy年mm月nn日礼物统计.xlsx`\n\u003e\n\u003e     请确保运行本程序前，当前文件夹中**无同名文件**，否则会直接覆盖造成数据损失。\n\u003e\n\u003e 1. **其中 `bzcookies` 为重要账号登录信息，请谨慎保管、切勿泄漏，否则可能导致账号被盗用等后果。**\n\n****************************************\n\n## 使用方法\n\n### 方法一：下载打包好的程序（推荐）\n\n下载最新的 [Release](https://github.com/boxie123/Bilibili_GetReceivedGiftStream/releases) 中的 `.exe` 文件，双击运行。\n\nDemo：\n\n![Demo](images/Demo.png)\n\n### 方法二：手动构建\n\n\u003e 需使用 [git](https://git-scm.com/)、[pdm](https://github.com/pdm-project/pdm)、[python](https://www.python.org/) 等，不建议小白手动构建。\n\n#### 克隆Git仓库：\n\n```sh\ngit clone https://github.com/boxie123/Bilibili_GetReceivedGiftStream.git\ncd Bilibili_GetReceivedGiftStream\n```\n\n#### 构建虚拟环境：\n\n使用 [pdm](https://github.com/pdm-project/pdm)：\n\n```sh\npdm install --prod\n```\n\n#### 运行：\n\n```sh\npdm run python main.py\n```\n\n************************************\n\n## Q \u0026 A\n\nQ: 程序闪退？\n\nA: 大概率是网络问题导致爬取过程中链接超时。\n\n--------------------------------------\n\nQ: 大航海表格可以生成，但礼物表格生成失败？\n\nA: 0.7.0及以下版本使用 xls 的 `SUM` 求和公式，但 xls 为 Excel 2007 之前的版本，求和公式最大参数限制为30个，\n目前已弃用 xls 改用 xlsx ，请及时更新至0.8.0及以上版本。\n\n----------------------------------------\n\n若排除以上原因后仍然闪退，请打开 CMD 窗口手动运行程序，带着**报错信息**来提 [Issues](https://github.com/boxie123/Bilibili_GetReceivedGiftStream/issues) 吧！\n\n## 支持与贡献\n\n觉得好用可以给这个项目点个 Star 或者去关注非常可爱的 [艾鸽泰尔德](https://space.bilibili.com/1485569)。\n\n有意见或者建议也欢迎提交 [Issues](https://github.com/boxie123/Bilibili_GetReceivedGiftStream/issues) 和 [Pull requests](https://github.com/boxie123/Bilibili_GetReceivedGiftStream/pulls)。\n\n**************************************\n\n开发者：[铂屑](https://github.com/boxie123)、[hyt658](https://github.com/hyt658)\n\n开发思路：详见[《Bilibili GetReceivedGiftStream》](https://boxie123.github.io/Bilibili-GetReceivedGiftStream/)。\n~~在写了再写了（目移）~~\n\n————致 [@艾鸽泰尔德](https://space.bilibili.com/1485569) ，希望可爱的鸽宝统计礼物不再辛苦。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxie123%2FBilibili_GetReceivedGiftStream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboxie123%2FBilibili_GetReceivedGiftStream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxie123%2FBilibili_GetReceivedGiftStream/lists"}