这是一个利用 Linux Crontab , Docker等方式实现哔哩哔哩(Bilibili)每日任务投币,点赞,分享视频,直播签到,银瓜子兑换硬币,漫画每日签到,简单配置即可每日轻松获取 65 经验值,快来和我一起成为 Lv6 吧~~~~

Overview

BILIBILI-HELPER

GitHub stars GitHub forks GitHub issues GitHub license GitHub All Releases Docker Pulls GitHub contributors GitHub release (latest SemVer) FOSSA Status

工具简介

这是一个利用 Linux Crontab ,云函数, Docker 等方式实现哔哩哔哩(Bilibili)每日任务投币,点赞,分享视频,直播签到,银瓜子兑换硬币,漫画每日签到,简单配置即可每日轻松获取 65 经验值,快来和我一起成为 Lv6 吧~~~~

如果觉得好用,顺手点个 Star 吧

仓库地址:JunzhouLiu/BILIBILI-HELPER

B 站赛事预测助手已发布,每天自动参与 KPL,LPL 赛事预测,赚取硬币。

仓库地址:JunzhouLiu/bilibili-match-prediction

请不要滥用相关 API,让我们一起爱护 B 站

请各位务必遵守 Github 服务条款。不要滥用 Actions 工作流。

Please be sure to abide by the Github terms of service. Don’t abuse the Actions workflow.

功能列表

  • 通过docker或者云函数执行定时任务。【运行时间可自定义】
  • 哔哩哔哩漫画每日自动签到,自动阅读 1 章节 。
  • 每日自动从热门视频中随机观看 1 个视频,分享一个视频。
  • 每日从热门视频中选取 5 个进行智能投币 【如果投币不能获得经验了,则不会投币】
  • 投币支持下次一定啦,可自定义每日投币数量。【如果检测到你已经投过币了,则不会投币】
  • 大会员月底使用快到期的 B 币券,给自己充电,一点也不会浪费哦,默认开启。【已支持给指定 UP 充电】
  • 大会员月初 1 号自动领取每月 5 张 B 币券和福利。
  • 每日哔哩哔哩直播自动签到,领取签到奖励。【直播你可以不看,但是奖励咱们一定要领】
  • Linux 用户支持自定义配置了。
  • 投币策略更新可配置投币喜好。【可配置优先给关注的 up 投币】
  • 自动送出即将过期的礼物。 【默认开启,未更新到新版本的用户默认关闭】
  • 支持推送执行结果到微信,钉钉,飞书等。

点击快速开始使用

点击快速查看自定义功能配置

目录

使用说明

获取运行所需的 Cookies

  1. Fork 本项目
  2. 获取 Bilibili Cookies
  3. 浏览器打开并登录 bilibili 网站
  4. 按 F12 打开 「开发者工具」 找到 应用程序/Application -> 存储 -> Cookies
  5. 找到 bili_jct SESSDATA DEDEUSERID 三项,并复制值,后面需要用到。

图示

一、使用 腾讯云函数

请参考腾讯云函数部署

二、使用 Docker

请自行参阅 Issues/75#issuecomment-731705657基于本项目的衍生项目

三、使用 Linux Crontab 方式

  1. 在 linux shell 环境执行以下命令,并按照提示输入 SESSDATA,DEDEUSERID,BILI_JCT,SCKEY 四个参数
wget https://raw.githubusercontent.com/JunzhouLiu/BILIBILI-HELPER/main/setup.sh && chmod +x ./setup.sh && sudo ./setup.sh

ps:注意,如果使用自定义配置,请将config.json和 jar 包放置在同一目录(使用 setup.sh 安装则需要将config.json放置到{HOME}/BILIBILI-HELPER),v1.2.2 之后的版本release中都会携带一份config.json

  1. 除此之外,也可以通过点击 BILIBILI-HELPER/release,下载已发布的版本,解压后将 jar 包手动上传到 Linux 服务器,使用 crontab 完成定时执行,如果使用crontab 请记得source /etc/profilesource ~/.bashrc,建议直接使用仓库提供的start.sh脚本,注意修改脚本的 jar 包路径和 cookies 参数。

crontab 命令示例

30 10 * * * sh /home/start.sh

args 说明
30 10 * * * crontab 定时时间
sh /home/start.sh start.sh的路径
#!/bin/bash
source /etc/profile
source ~/.bashrc
source ~/.zshrc #其他终端请自行引入环境变量
echo $PATH
java -jar /home/BILIBILI-HELPER.jar DEDEUSERID SESSDATA BILI_JCT SCKEY >> /var/log/bilibili-help.log
# 注意将jar包路径替换为实际路径。将参数修改该你自己的参数,cookies中含有% * 等特殊字符需要转义。

命令示例:

# *如果Cookies参数中包含特殊字符,例如`%`请使用`\`转义*,如果不执行可在命令前增加 source /etc/profile
# m h  dom mon dow   command
30 10 * * * java -jar /home/BILIBILI-HELP.jar DEDEUSERID SESSDATA BILI_JCT >/var/log/cron.log &

自定义功能配置

配置文件示例:

{
  "numberOfCoins": 5,
  "reserveCoins": 50,
  "selectLike": 0,
  "monthEndAutoCharge": true,
  "giveGift": true,
  "upLive": "0",
  "chargeForLove": "0",
  "devicePlatform": "ios",
  "coinAddPriority": 1,
  "skipDailyTask": true,
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15"
}

Windows/Linux 用户使用 jar 包时,release包中会包含一份config.json配置文件,只需将其和BILIBILI-HELP.jar放在同一目录即可,执行时优先加载外部配置文件

配置文件参数示意

Key Value 说明
numberOfCoins [0,5] 每日投币数量,默认 5 ,为 0 时则不投币
reserveCoins [0,4000] 预留的硬币数,当硬币余额小于这个值时,不会进行投币任务,默认值为 50
selectLike [0,1] 投币时是否点赞,默认 0, 0:否 1:是
monthEndAutoCharge [false,true] 年度大会员月底是否用 B 币券给自己充电,默认 true,即充电对象是你本人。
giveGift [false,true] 直播送出即将过期的礼物,默认开启,如需关闭请改为 false
upLive [0,送礼 up 主的 uid] 直播送出即将过期的礼物,指定 up 主,为 0 时则随随机选取一个 up 主
chargeForLove [0,充电对象的 uid] 给指定 up 主充电,值为 0 或者充电对象的 uid,默认为 0,即给自己充电。
devicePlatform [ios,android] 手机端漫画签到时的平台,建议选择你设备的平台 ,默认 ios
coinAddPriority [0,1] 0:优先给热榜视频投币,1:优先给关注的 up 投币
userAgent 浏览器 UA 用户可根据部署平台配置,可根据 userAgent 参数列表自由选取
skipDailyTask [false,true] 是否跳过每日任务,默认true,如果关闭跳过每日任务,请改为false

tips:如果你没有上传过视频并开启充电计划,充电会失败,B 币券会浪费。此时建议配置为给指定的 up 主充电。欢迎给即将秃头的我充电 uid:14602398

userAgent 可选参数列表

平台 浏览器 userAgent
Windows10 EDGE(chromium) Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 Edg/86.0.622.69
Windows10 Chrome Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
masOS safari Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15
macOS Firefox Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:65.0) Gecko/20100101 Firefox/65.0
macOS Chrome Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36

ps:如果尝试给关注的 up 投币十次后(保不准你关注的是年更 up 主),还没完成每日投币任务,则切换成热榜模式,给热榜视频投币

投币数量代码做了处理,如果本日投币不能获得经验了,则不会投币,每天只投能获得经验的硬币。假设你设置每日投币 3 个,早上 7 点你自己投了 2 个硬币,则十点半时,程序只会投 1 个) tips:从1.4.1版本开始,随机视频投币有一定的概率会将硬币投给本项目的核心开发者。

订阅执行结果

Server 酱 Turbo 版

目前 Turbo 版本的消息通道支持以下渠道

  • 企业微信应用消息
  • Android,
  • Bark iOS,
  • 企业微信群机器人
  • 钉钉群机器人
  • 飞书群机器人
  • 自定义微信测试号
  • 方糖服务号
  1. 前往 sct.ftqq.com点击登入,创建账号。
  2. 点击点SendKey ,生成一个 Key 变量名为 SERVERPUSHKEY
  3. 配置消息通道 ,选择方糖服务号,保存即可。
  4. 推送效果展示 图示

旧版推送渠道sc.ftqq.com 即将与 4 月底下线,请前往sct.ftqq.com生成Turbo版本的Key,注意,申请 Turbo 版 Key 后请配置消息通道,如果想沿用以前的推送方式,选择方糖服务号即可

Telegram 订阅执行结果

  1. 在 Telegram 中添加 BotFather 这个账号,然后依次发送/start /newbot 按照提示即可创建一个新的机器人。记下来给你生成的 token。

  2. 搜索刚刚创建的机器人的名字,并给它发送一条消息。

特别注意:需要先与机器人之间创建会话,机器人才能下发消息,否则机器人无法主动发送消息,切记!

  1. 在 Telegram 中搜索 userinfobot,并给它发送一条消息,它会返回给你 chatid。

  2. 删除 SERVERPUSHKEY,添加 TELEGRAMBOTTOKEN,TELEGRAMCHATID。

钉钉机器人

  1. 首先你得有个钉钉企业 快速注册

  2. 进入钉钉开放平台添加机器人

  3. 添加自定义关键词:BILIBILI

  4. SERVERPUSHKEY 的值更新成机器人的 Webhook

例如:https://oapi.dingtalk.com/robot/send?access_token=XXX

  1. 完成

PushPlus(Push+)

  1. 前往 PushPlus 获取 Token

  2. SERVERPUSHKEY 的值更新成获取到的 Token

3.完成

免责声明

  1. 本工具不会记录你的任何敏感信息,也不会上传到任何服务器上。(例如用户的 cookies 数据,cookies 数据均存在用户自己的设备上)
  2. 本工具不会记录任何执行过程中来自 b 站的数据信息,也不会上传到任何服务器上。(例如 av 号,bv 号,用户 uid 等)。
  3. 本工具执行过程中产生的日志,仅会在使用者自行配置推送渠道后进行推送。日志中不包含任何用户敏感信息。
  4. 如果你使用了第三方修改的,打包的本工具代码,请注意甄别,有可能会对你账号造成损失,同时也不要把自己的敏感信息(账号,cookies等)提供给他人。(网络安全教育普及任重而道远
  5. 本工具源码仅在JunzhouLiu/BILIBILI-HELPER开源,其余的地方的代码均不是我提交的。如果有人修改了本项目(或者直接使用本项目)盈利恰饭,或者给你造成了损失,和本人无关,我开源的目的单纯是技术分享,所有代码细节都公开。
  6. 我开源本工具的代码仅仅是技术分享,没有任何丝毫的盈利赚钱目的,如果你给我投币,充电了,咱们之间也不构成任何雇佣,购买关系的交易。
  7. 本项目不会增加类似于自动转发抽奖,秒杀,下载版权受限视频等侵犯 UP 主/B 站权益的功能,开发这个应用的目的是单纯的技术分享。下游分支开发者/使用者也请不要滥用相关功能。
  8. 本项目遵守MIT License,请各位知悉。

API 参考列表

基于本项目的衍生项目

致谢

感谢 JetBrains 对本项目的支持。

JetBrains

License

FOSSA Status

Stargazers over time

Stargazers over time

You might also like...

A Linux packet crafting tool.

Pig Pig (which can be understood as Packet intruder generator) is a Linux packet crafting tool. You can use Pig to test your IDS/IPS among other stuff

Dec 24, 2022

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more

BPF Compiler Collection (BCC) BCC is a toolkit for creating efficient kernel tracing and manipulation programs, and includes several useful tools and

Dec 30, 2022

Performance analysis tools based on Linux perf_events (aka perf) and ftrace

Performance analysis tools based on Linux perf_events (aka perf) and ftrace

perf-tools A miscellaneous collection of in-development and unsupported performance analysis tools for Linux ftrace and perf_events (aka the "perf" co

Dec 28, 2022

A java agent to generate method mappings to use with the linux `perf` tool

perf-map-agent A java agent to generate /tmp/perf-pid.map files for just-in-time(JIT)-compiled methods for use with the Linux perf tools. Build Make

Jan 1, 2023

PerfJ is a wrapper of linux perf for java programs.

PerfJ is a wrapper of linux perf for java programs.

PerfJ PerfJ is a wrapper of linux perf for java programs. As Brendan Gregg's words In order to profile java programs, you need a profiler that can sam

Jan 2, 2023

Packages your JAR, assets and a JVM for distribution on Windows, Linux and Mac OS X

About Packages your JAR, assets and a JVM for distribution on Windows, Linux and macOS, adding a native executable file to make it appear like a nativ

Jan 5, 2023

A cracked Minecraft launcher for Linux

Usage Usage: ./run.sh Usage for the first time: ./run.sh game directory player name (optional) Building Prerequisites Java 16 (for Minecraft and t

Sep 7, 2021

BukkitRCEElevator - Allows you to execute Linux commands on panels like Multicraft.

BukkitRCEElevator A plugin that lets you execute linux commands thru Minecraft console. This only works on panels that do not use docker like Multicra

Dec 27, 2021

InstallRepos - Install GitHub Repository on any Operating System (Linux, MacOS or Windows).

Install Repos Install GitHub Repository on any Operating System (Linux, MacOS or Windows). Requires Java JRE 17.0.0.1 or later. Repository Includes: s

Apr 21, 2022

The Android remote client for linux rhythmbox

The Android remote client for linux rhythmbox

RhythmRoid Rhythmroid is a remote android application for Rhythmbox on Linux. Rhythmroid helps you control the music playing in the rhythmbox on your

Sep 6, 2022

Terminal GUI library for simple ANSI console tools and graphical interfaces with Windows/Linux support

Terminal GUI library for simple ANSI console tools and graphical interfaces with Windows/Linux support

TerminalCore Terminal GUI library for Windows/Linux. This library contains all colors as ascii codes, native functions of the respective operating sys

Oct 19, 2022

Pandora - allowing to control different agents (Windows & Linux machine) from server(s) and master

Pandora - allowing to control different agents (Windows & Linux machine) from server(s) and master

Pandora Pandora is now an open-source project allowing to control different agents (Windows & Linux machine) from server(s) and master. Features Auto-

Dec 22, 2022

WavesFX an open-source Waves wallet for Windows, macOS and Linux

WavesFX an open-source Waves wallet for Windows, macOS and Linux

WavesFX WavesFX is an open-source Waves wallet for Windows, macOS and Linux. Telegram Chat Releases can be found on the release list. How to build Wav

Apr 15, 2022

Small app to create icon sets for Linux, Windows, OSX, Android and IOS from a single PNG image

FXIconcreator Small app to create icon sets (multi resolution) for Linux, Windows, OSX from a single PNG image Reason for creating such an app was tha

Aug 4, 2022

A prayer times (Adhan) app for Windows and GNU/Linux written in JavaFX.

 A prayer times (Adhan) app for Windows and GNU/Linux written in JavaFX.

Salawat Salawat - سالوات A prayer times and Adhan application for Windows, macOS and GNU/Linux written in Java Download » View Demo · Report Bug · Req

Nov 17, 2022
Releases(v2.1.0)
Owner
Junzhou Liu
Student / Java Developer
Junzhou Liu
这是一个自动化的托管系统,目前支持网易云,bilibili,米游社原神签到,测试地址https://auto.oldwu.top

AutoPlan_Helper 这是一个自动化的托管系统,目前支持网易云签到刷歌,bilibili,米游社原神签到 目前项目属于测试阶段,可能会有些莫名其妙的bug,敬请谅解 如果觉得好用,点个star吧 开源地址 wyt1215819315 / autoplan 目前已经实现 b站每日自动经验任务

null 501 Jan 1, 2023
The Android remote client for linux rhythmbox

RhythmRoid Rhythmroid is a remote android application for Rhythmbox on Linux. Rhythmroid helps you control the music playing in the rhythmbox on your

null 7 Sep 6, 2022
Pandora - allowing to control different agents (Windows & Linux machine) from server(s) and master

Pandora Pandora is now an open-source project allowing to control different agents (Windows & Linux machine) from server(s) and master. Features Auto-

nz 75 Dec 22, 2022
Small app to create icon sets for Linux, Windows, OSX, Android and IOS from a single PNG image

FXIconcreator Small app to create icon sets (multi resolution) for Linux, Windows, OSX from a single PNG image Reason for creating such an app was tha

null 18 Aug 4, 2022
A virtual Linux shell environment application for Android OS. Runs Alpine Linux in QEMU system emulator. Termux app fork.

vShell (Virtual Shell) — a successor of Termux project which provides an alternate implementation of the Linux terminal emulator for Android OS.

null 2 Feb 1, 2022
bilibili-coin-show hand ,自动参与哔哩哔哩游戏赛事预测,赚取硬币,B站游戏竞猜,赚硬币。

个利用 Linux Crontab , GitHub Action 等方式实现哔哩哔哩(Bilibili)赛事预测的工具,用于每日赚取硬币

Junzhou Liu 173 Sep 28, 2021
bilibili B站 哔哩哔哩 acfun A站 樱花动漫 番剧下载器(Video Downloader):smiley:​ 仅供学习交流 求 star orz

AnimeDownloader 番剧下载器 ?? 使用教程 下载 B 站视频 支持的类型 普通视频(不支持互动类视频) 番剧(大会员视频需要先登录) 电影 纪录片 ... 下载 A 站视频 支持类型 普通视频 番剧(不支持付费视频) 下载樱花动漫视频 支持类型 部分支持(加密的 m3u8 类型视频不

lin 71 Dec 16, 2022
这是一个自动化的托管系统,目前支持网易云,bilibili,米游社原神签到,测试地址https://auto.oldwu.top

AutoPlan_Helper 这是一个自动化的托管系统,目前支持网易云签到刷歌,bilibili,米游社原神签到 目前项目属于测试阶段,可能会有些莫名其妙的bug,敬请谅解 如果觉得好用,点个star吧 开源地址 wyt1215819315 / autoplan 目前已经实现 b站每日自动经验任务

null 501 Jan 1, 2023
:package: Gradle/Maven plugin to package Java applications as native Windows, Mac OS X, or GNU/Linux executables and create installers for them.

JavaPackager JavaPackager is a hybrid plugin for Maven and Gradle which provides an easy way to package Java applications in native Windows, Mac OS X

Francisco Vargas Ruiz 665 Jan 8, 2023
Packages your JAR, assets and a JVM for distribution on Windows, Linux and Mac OS X

About Packages your JAR, assets and a JVM for distribution on Windows, Linux and macOS, adding a native executable file to make it appear like a nativ

libgdx 2.4k Dec 24, 2022