{"id":13432340,"url":"https://github.com/silie666/bilibiliLottery","last_synced_at":"2025-03-16T23:31:09.617Z","repository":{"id":53547580,"uuid":"335830950","full_name":"silie666/bilibiliLottery","owner":"silie666","description":"bilibili活动页抽奖，自动转发动态抽奖（包含评论，点赞，关注）","archived":false,"fork":false,"pushed_at":"2024-05-15T01:30:55.000Z","size":31678,"stargazers_count":122,"open_issues_count":2,"forks_count":28,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-27T11:50:36.716Z","etag":null,"topics":["bilibili","go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/silie666.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-04T03:50:13.000Z","updated_at":"2024-10-27T06:57:36.000Z","dependencies_parsed_at":"2024-05-13T12:27:50.038Z","dependency_job_id":"bfb373ff-62e4-4852-8b8e-7571a8aab6d9","html_url":"https://github.com/silie666/bilibiliLottery","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silie666%2FbilibiliLottery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silie666%2FbilibiliLottery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silie666%2FbilibiliLottery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silie666%2FbilibiliLottery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silie666","download_url":"https://codeload.github.com/silie666/bilibiliLottery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243949875,"owners_count":20373653,"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","go"],"created_at":"2024-07-31T02:01:10.482Z","updated_at":"2025-03-16T23:31:09.297Z","avatar_url":"https://github.com/silie666.png","language":"Go","funding_links":[],"categories":["其他"],"sub_categories":["直播脚本"],"readme":"## 转发动态原理\n\n爬取某个用户的页面来转发动态。支持多人，获取数据跟着转发，前提条件是这个人只转发抽奖，并且重复度不高。\n\n## 活动抽奖原理\n\n抓取up主转发抽奖娘更新的最新抽奖列表。\n\n## 日志报错\n\n如果出现日志报错，只要程序没有中断，就可以忽略。\n\n# 使用方法\n\n## 第一步：修改config.ini配置\n\n| 配置项        | 说明                  |\n|------------|---------------------|\n| **cookie** |\n| csrf       | 自己的bili_jct         |\n| sess_data  | 自己的SESSDATA         |\n| uid        | 自己的uid              |\n| **data**   |\n| host_uid   | ta人uid，多个uid用英文逗号隔开 |\n| sync_dynamic_interval   | 同步动态时间间隔，默认5分钟      |\n| forward_interval   | 转发动态时间间隔，默认43分钟     |\n| **mysql**  |\n| host   | 自己本地的mysql          |\n| user       | 账号                  |\n| pwd        | 密码                  |\n| name        | 数据库名称               |\n| **log**   |\n| path       | 日志路径，写绝对路径          |\n\n如果是自己编译的，还需要更改`env.go`文件里的`viper.AddConfigPath(\"/files/go/bilibiliLottery/config\")`配置文件路径。\n\n## 第二步：运行初始化命令\n\n```bash\ngo run main.go -init\n```\n\n## 注意事项\n\n- 转盘抽奖一天获取一次，并且根据获取到的抽奖次数进行抽奖，一天运行一次即可；\n- 可以自己编译运行，`go build main.go`，注意更改`env.go`文件里的`viper.AddConfigPath(\"/files/go/bilibiliLottery/config\")`配置文件路径。\n\n# 可用命令\n\n以下是可用的命令列表：\n\n- 初始化命令\n```bash\ngo run main.go -init\n```\n- 扫码登录，该功能只是为了方便自己cookie过期后更换\n```bash\ngo run main.go -login\n```\n- 开始转盘抽奖\n```bash\ngo run main.go -draw\n```\n- 开始转发\n```bash\ngo run main.go -start\n```\n- 删除动态，该功能默认删除第二页数据第一条，原因是有些抽奖工具是根据动态数量判断的，所以定期删掉一些动态\n```bash\ngo run main.go -del\n```\n- 批量取关up，从后往前取关\n```bash\ngo run main.go -cancel-modify\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilie666%2FbilibiliLottery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilie666%2FbilibiliLottery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilie666%2FbilibiliLottery/lists"}