Automate Bilibili Manga check-ins and reading via WPS AirScript
Source code available at:
website·Indexed 31 days ago
https://bo.thefish.icu/Documentation for a Bilibili automation tool featuring configuration guides for JSON5, account management, and deployment instructions for GitHub Actions, Aliyun FC, Tencent SCF, Huawei AGC, and Baidu CFC. Includes detailed schemas for coins, manga, gifts, and intimacy tasks, as well as guides for obtaining cookies and managing environment variables.
Source code available at:
To run BiliOutils automatically on Windows, use the system Task Scheduler (taskschd.msc).
Win + R and enter taskschd.msc.bilioutils.-c E:\github\bilitools\config.json5).To set up the Bilibili Manga automation tool, follow these steps:
SESSDATA, bili_jct, and DedeUserID.Install the bilioutils package in the FC environment. If you encounter engine compatibility errors (e.g., Node version mismatch between the build and runtime environment), use the ignore-engines configuration.
After installing dependencies, update the index.js file to export the FC handler.
# Optional: Set registry to default for the latest modules
npm config set registry https://registry.npmjs.org/
# If engine compatibility errors occur
npm config set ignore-engines true
# Install the library
npm install bilioutils// index.js
exports.handler = require('bilioutils').fc_handler();@catlair/blogin dependency and run the login command. Use a mobile phone to scan the resulting QR code. If the mid exists in the configuration file, it will update automatically; otherwise, copy the printed cookie from the console or log file into your configuration.yarn add @catlair/blogin
npx bilioutils -lTo retrieve cookies from Bilibili on a mobile device, use the Alook browser (available in app stores or at alookweb.com).
Steps to extract cookies:
To avoid risk control and ensure stability, use a complete Cookie string rather than just the basic identifiers. While DedeUserID, bili_jct, and SESSDATA are the minimum requirements, including buvid3, buvid4, and other fingerprint tokens is strongly recommended to prevent anomalies.
To prevent cookies from expiring due to automatic refreshes in your main browser session:
_uuid=...; buvid3=...; fingerprint=...; buvid_fp=...; SESSDATA=...; bili_jct=...; DedeUserID=...; DedeUserID__ckMd5=...; sid=...; fingerprint3=...; fingerprint_s=...; buvid_fp_plain=...; CURRENT_FNVAL=...; blackside_state=...; rpdid=...; _dfcaptcha=...; LIVE_BUVID=...; bsource=...; PVID=...To deploy bilioutils on Alibaba Cloud FC, create a service and a function with the following basic configurations to minimize costs:
Note: Without a resource package, costs are approximately 1 CNY per month if Alibaba Cloud Log Service is disabled and only basic tasks (excluding high-consumption tasks like 'Tianxuan' or 'Live Heartbeat') are running.
The application supports multiple deployment methods with specific parameters:
task, item, and config (to specify a custom config path) parameters, especially when used with the Qinglong panel.task parameter for additional configuration info on Tencent Cloud and Alibaba Cloud functions.