{"id":13432164,"url":"https://github.com/rongchenlin/BiliBili-Lucky-Draw","last_synced_at":"2025-03-16T23:30:49.140Z","repository":{"id":163966053,"uuid":"609910953","full_name":"rongchenlin/BiliBili-Lucky-Draw","owner":"rongchenlin","description":"B站抽奖转发——薅羊毛脚本   :    一个小脚本能够帮助你去看看B站上面今天有哪些Up有抽奖活动，然后还能帮助你自动进行抽奖（转发动态+关注），毕竟抽奖总得试试吗，万一中奖了呢","archived":false,"fork":false,"pushed_at":"2024-02-22T03:51:18.000Z","size":67934,"stargazers_count":347,"open_issues_count":11,"forks_count":46,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-27T11:49:09.477Z","etag":null,"topics":["bilibili","drawing-app","lottery","luckydraw","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rongchenlin.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}},"created_at":"2023-03-05T15:55:03.000Z","updated_at":"2024-10-26T13:46:37.000Z","dependencies_parsed_at":"2024-02-26T20:01:34.354Z","dependency_job_id":null,"html_url":"https://github.com/rongchenlin/BiliBili-Lucky-Draw","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rongchenlin%2FBiliBili-Lucky-Draw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rongchenlin%2FBiliBili-Lucky-Draw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rongchenlin%2FBiliBili-Lucky-Draw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rongchenlin%2FBiliBili-Lucky-Draw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rongchenlin","download_url":"https://codeload.github.com/rongchenlin/BiliBili-Lucky-Draw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243949807,"owners_count":20373651,"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","drawing-app","lottery","luckydraw","python"],"created_at":"2024-07-31T02:01:09.064Z","updated_at":"2025-03-16T23:30:49.132Z","avatar_url":"https://github.com/rongchenlin.png","language":"Python","funding_links":[],"categories":["其他"],"sub_categories":["直播脚本"],"readme":"\u003cdiv align=\"center\"\u003e\r\n    \u003cimg align=\"center\" src=\"https://github.com/rongchenlin/BiliBili-Lucky-Draw/blob/master/img/Readme.assets/logo.png\" alt=\"logo\" width=\"600\"\u003e\r\n    \u003cp align=\"center\"\u003e· BiliBili-Lucky-Draw ·\u003c/p\u003e\r\n    \u003cp align=\"center\"\u003e\r\n        \u003cimg src=\"https://img.shields.io/github/stars/rongchenlin/BiliBili-Lucky-Draw?color=red\u0026style=flat-square\"\u003e\r\n        \u003ca href=\"mailto:2702739215@qq.com\"\u003e\r\n            \u003cimg src=\"https://img.shields.io/static/v1?label=contact%20me\u0026message=email\u0026color=green\u0026style=flat-square\"\u003e\r\n        \u003c/a\u003e\r\n        \u003ca href=\"https://github.com/rongchenlin/BiliBili-Lucky-Draw/blob/master/LICENSE\" target=\"_blank\"\u003e\r\n            \u003cimg src=\"https://img.shields.io/static/v1?label=license\u0026message=GPL-3.0\u0026color=orange\u0026style=flat-square\"\u003e\r\n        \u003c/a\u003e\r\n        \u003ca href=\"https://github.com/rongchenlin/BiliBili-Lucky-Draw/issues/new/choose\" target=\"_blank\"\u003e\r\n            \u003cimg src=\"https://img.shields.io/static/v1?label=feedback\u0026message=issues\u0026color=pink\u0026style=flat-square\"\u003e\r\n        \u003c/a\u003e\r\n    \u003c/p\u003e\r\n    \u003c/br\u003e\r\n\u003c/div\u003e\r\n\r\n## Ⅰ.简介\r\n\r\n常刷B站的伙伴们，是不是每次看到Up主的抽奖活动都心动不已，毕竟`抽奖总得试试吗，万一中奖了呢`，然后一波关注+转发之后，迎来的每每都是`从不缺席，从不中奖`。\r\n\r\nSo，如果有个小脚本能够帮助你去看看**今天有哪些Up有抽奖活动，然后还能帮助你自动进行抽奖（转发动态+关注）**，那么你是不是可以花更多时间去看看二次元动漫呀。本着有羊毛一起薅的想法，我做了一个B站自动抽奖活动转发的小脚本，帮助伙伴们自动参与Up主的活动转发，提高伙伴们的中奖率，同时还能解放大家的双手，开开心心薅羊毛。\r\n\r\n**声明**: \u003cu\u003e**此脚本仅用于学习和测试，作者本人并不对其负责，请于运行测试完成后自行删除，请勿滥用！**\u003c/u\u003e\r\n\r\n## Ⅱ.效果\r\n\r\n本程序内置一个扫描脚本，该脚本去挖掘那些经常转发抽奖动态的伙伴，然后每天定时去扫描他们今天的动态信息，随后再利用一个抽奖动态识别与转发脚本来进行活动参与，转发后的效果是这样的：\r\n\r\n![image-20230630234051479](img/Readme.assets/image-20230630234051479.png)\r\n\r\n## III.使用：Docker部署（推荐）\r\n\r\n### 1.Clone本项目\r\n\r\n### 2.获取B站Cookie\r\n\r\n\u003e 苹果Mac电脑参考：[点击这里](https://github.com/BilibiliVideoDownload/BilibiliVideoDownload/wiki/%E8%8E%B7%E5%8F%96SESSDATA)\r\n\r\n\u003e window电脑详细方法参考：[点击这里](https://zhuanlan.zhihu.com/p/383171889)\r\n\r\n在浏览器进入[B站](https://www.bilibili.com/)，然后登录，随后按照下图获取cookie值\r\n\r\n在`.env`文件中，修改相关信息：\r\n\r\n![](img/Readme.assets/2024-01-31-15-08-26-image.png)\r\n\r\n### 3.设置Cookie和本机IP\r\n\r\n注意：本机IP建议不要填127.0.0.1，而是填写实际IP。\r\n\r\n在本项目的.env文件中，将第2步获取的cookie值填入下图位置\r\n\r\n![](img/Readme.assets/2024-01-31-17-13-39-image.png)\r\n\r\n### 4.在Docker中分别执行下面两条命令\r\n\r\n编译命令：\r\n\r\n```dockerfile\r\ndocker-compose build\r\n```\r\n\r\n运行容器：\r\n\r\n```\r\ndocker-compose up -d\r\n```\r\n\r\n\u003cu\u003eTip：如果要停止容器，可以使用命令：`docker-compose down`\u003c/u\u003e\r\n\r\n### 5.确认是否运行成功\r\n\r\n等待docker运行成功后，点击进入 your_ip:5555/ui/sessions，然后点击正在执行的项目，看是否出现如下截图\r\n\r\n## IV.TODO \u0026\u0026 Updated\r\n\r\n- [x] 项目采用Docker部署\r\n- [x] 扫描B站二维码登录B站，自动生成Cookie并保存到本地项目文件夹cookie中\r\n- [x] 登录过期，使用Cookie续期\r\n- [x] 每日任务执行情况推送（之前用的方糖酱，后续将重新加入）\r\n- [x] 将数据库搭建的工作使用Docker部署\r\n- [x] Docker服务编排，一键部署\r\n- [x] 开发桌面程序(目前只是简单版本)\r\n- [x] 过期动态的删除\r\n- [x] 接入B站UP主每日总结的抽奖动态列表，自动完成对其转发\r\n\r\n---\r\n\r\n## Ⅶ.Thanks\r\n\r\n**本程序仅用于学习**\r\n\r\n**有问题欢迎大家提Issue，有时间我会帮忙解决，也请大佬有好的解决方案在Issue上分享，更加欢迎大家提出PR，成为项目的贡献者。**\r\n\r\n如果大家觉得这个项目有点意思，期待给个Star :star:，你的Star :star:是作者更新最大的动力鸭!\r\n\r\n\u003cpicture\u003e\r\n  \u003csource\r\n    media=\"(prefers-color-scheme: dark)\"\r\n    srcset=\"\r\n      https://api.star-history.com/svg?repos=rongchenlin/BiliBili-Lucky-Draw\u0026type=Date\u0026theme=dark\r\n    \"\r\n  /\u003e\r\n  \u003csource\r\n    media=\"(prefers-color-scheme: light)\"\r\n    srcset=\"\r\n      https://api.star-history.com/svg?repos=rongchenlin/BiliBili-Lucky-Draw\u0026type=Date\r\n    \"\r\n  /\u003e\r\n  \u003cimg\r\n    alt=\"Star History Chart\"\r\n    src=\"https://api.star-history.com/svg?repos=rongchenlin/BiliBili-Lucky-Draw\u0026type=Date\"\r\n  /\u003e\r\n\u003c/picture\u003e\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frongchenlin%2FBiliBili-Lucky-Draw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frongchenlin%2FBiliBili-Lucky-Draw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frongchenlin%2FBiliBili-Lucky-Draw/lists"}