Mirai Selenium Plugin

Mirai Selenium 前置插件

Mirai-Console的前置插件,用于使用Selenium调用浏览器进行截图等

maven-central

运行平台支持 OS Browser Support Windows Chrome Yes Windows Firefox Yes Windows Edge Yes Linux Chrome Yes Linux Firefox Yes MacOS Chrome Test MacOS Firefox Test 在插件项目中引用 repositories { mavenCentral() } dependencies { compileOnly("xyz.cssxsh.mirai:mirai-selenium-plugin:${version}") } 示例代码 kotlin 使用本前置插件的项目 BiliBili Helper 配置 MiraiSeleniumConfig.yml user_agent 截图UA width 截图宽度 height 截图高度 pixel_ratio 截图像素比 headless 无头模式(后台模式) proxy 代理地址 log 启用日志文件 browser 指定使用的浏览器: Chrome,Firefox,Edge factory 指定使用的Factory: ktor,netty 安装 MCL 指令安装

./mcl --update-package xyz.cssxsh.mirai:mirai-selenium-plugin --channel stable --type plugin

手动安装 运行 Mirai Console 生成plugins文件夹 从 Releases 下载jar并将其放入plugins文件夹中