Schedule-bilibili is an automatic task execution tool for station B, written with JS + AXIOS. Through it, the account of Station B can automatically watch, share and coin-insert videos every day, obtain experience, automatically receive membership benefits every month, automatically charge itself and other functions. Help us easily upgrade members to Lv6 and earn batteries.

The detailed function catalog is as follows:

  • Automatic login every day to gain experience
  • Watch, share and coin video automatically every day (Support to specify the up master you want to support, preferentially select the configured UP master video, if not configured, randomly select the video)
  • Daily comic book automatic check-in
  • Automatic live check-in every day to receive rewards (You can watch the live broadcast, but the reward is not free to receive ~)
  • Automatic use of live center silver melon seeds to exchange B coins every day, to avoid waste
  • Automatically use the expiring B-coin certificate to recharge your batteries every month (You get the idea.)
  • Automatically receive 5 B coupons and great membership benefits every month (Now that you have bought a membership, you will receive the rewards you deserve.)
-- -- -- -- -- perform user login check -- -- -- -- -- -- -- -- -- -- login success -- -- -- -- -- -- -- -- -- -- [username] - xiaoxiunique -- -- -- -- -- [gold balance] - 94 -- -- -- -- - the user tasks completed state inspection -- -- -- -- -- -- -- -- -- -- request this day task status success -- -- -- -- -- -- -- -- -- -- the user tasks completed state inspection -- -- -- -- -- -- -- -- -- -- video broadcast success -- -- -- -- -- -- -- -- -- -- video sharing success -- -- -- -- -- -- -- -- -- -- cartoon sign in mission -- -- -- -- -- -- -- -- -- -- Complete comic sign in -- -- -- -- -- -- Silver seeds in COINS -- -- -- -- -- -- -- -- -- -- [silver coin melon seeds for failure The reason is: Silver seeds to insufficient] -- -- -- -- -- -- -- -- -- -- [the current balance of silver seeds: 0] -- -- -- -- -- -- -- -- -- -- executive pay -- -- -- -- -- -- -- -- -- -- [coin task start] -- -- -- -- -- -- -- -- -- -- [pay] success -- -- -- -- -- -- -- -- -- -- the program current is: 1 -- -- -- -- -- -- -- -- -- -- perform live in -- -- -- -- -- -- -- -- -- -- [live sign in successfully, the obtained] -- -- -- -- -- undefined - recharge their mission -- -- -- -- -- -- -- -- -- -- [with the project should be white piao users, not is the annual big member, Don't realize this task] -- -- -- -- -- -- -- -- -- -- execution level -- -- -- -- -- -- -- -- -- -- [today get get total experience value: 60] -- -- -- -- -- -- -- -- -- -- [according to the current progress to upgrade to the Lv2] also need 5 days -- -- -- -- --Copy the code

Github repository address

1. The source code

/index.js

The project entry file is mainly used to accept necessary parameters and assemble various sub-tasks. Each sub-task is decoupled from each other with high cohesion and low coupling.

JS file Bilibili task
/task/userCheck.js Check user information to determine whether the provided parameters are correct.
/task/dayTask.js Obtain the daily task completion status.
/task/videoWatch.js Complete the video sharing task.
/task/mangaSign.js Complete the comic book check-in task.
/task/silverToCoin.js Complete the silver melon seeds for coins.
/task/coinAdd.js Complete the coin insertion task.
/task/liveCheckIn.js Complete the live check-in task.
/task/chargeMe.js Complete the recharge task.
/task/calcLevel.js Calculate how long it takes to reach the next level.

/api/base.js

Defines the basic AXIOS GET/POST methods that handle the request headers required by the common B-station.

2. How to use it?

To use schedule-Bilibili, we only need to do two steps, first get our Cookie as configuration information, then enter the configuration into the schedule-Bilibili program and run it.

2.1. Step 1: Get your own Cookie

  • Open the browser and log in to the Bilibili website
  • Press F12 to open developer Tools, then go to Apps /Application -> Store -> Cookies
  • findDEDEUSERID,SESSDATA,bili_jctThree, copy them and save them in notepad, we’ll use them later.

2.2. Step 2: Run schedule-bilibili

There are two ways to run schedule-Bilibili, either by running it online daily via Github Actions or by running it locally or debugging it.

Github Actions for those who are familiar with Github Actions, we recommend using Github Actions, which can automatically run online every day without having to do it yourself.

For those who do not have a Github account, or want to try a fresh quick operation first, or developers want to debug local friends, can jump to the second method, simple and fast operation.

Github Actions automatically runs on the timer line every day

Github Actions is a built-in CI/CD solution added by Microsoft After the acquisition of G site. The core of Github Actions is a small server that can run scripts (2 core CPU + 7G RAM + 14G SSD).

With it, we can automatically run our application online at a time every day.

The setting steps are as follows:

  • First fork this project (xiaoxiunique/schedule-bilibili) to their own warehouse

  • Go to your own fork repository and click Settings-> Secrets-> New Secrets to add the following 3 Secrets (USERID,SESSDATA,BILIBILI_JCT). They are passed into the program as command-line arguments when the application starts.

  • Start Actions and trigger automatic daily execution

Github Actions is disabled by default. After the previous configuration, please manually start Actions and perform a workflow to verify whether it can work properly.

After the run is complete, you can view the run log

If the execution is abnormal, you will receive an error email notification from GitHub Action. Please check whether the Cookies are invalid or if there is a bug. The user actively clears the browser cacheBILIBILI_JCTandDEDEUSERIDFailure.

3. White whoring is never the goal, learning is “manual dog head”

Using object-oriented thought to achieve schedule-Bilibili, each task is independent of each other, with high cohesion and low coupling. If you are a jer, I recommend you take a look.

Please leave your star if you find it useful. The project address