本站文章总数为:165
Search Posts

黑群晖docker 青龙面板bilibili每日签到投币刷视频

内容纲要

系统信息

黑群晖 DSM 7.2.1-69057 Update 1
容器镜像 whyour/qinglong:debian (使用debian版本,因为要安chrome模拟登陆)
b站项目git https://github.com/srcrs/MagicBox 还支持JD 52pojie 贴吧 hostloc V2EX 有道 JD

PS

但是我有https://github.com/Oreomeow/checkinpanel.git https://github.com/shufflewzc/faker2.git 其他的已经配置,所以其他我就不搞了 就B站有需要

容器json

whyour-qinglong-1.json 支持导入启动

{
   "CapAdd" : null,
   "CapDrop" : null,
   "cmd" : "",
   "cpu_priority" : 50,
   "enable_publish_all_ports" : false,
   "enable_restart_policy" : true,
   "enable_service_portal" : null,
   "enabled" : true,
   "env_variables" : [
      {
         "key" : "PATH",
         "value" : "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/share/pnpm:/root/.local/share/pnpm/global/5/node_modules:"
      },
      {
         "key" : "LANG",
         "value" : "C.UTF-8"
      },
      {
         "key" : "GPG_KEY",
         "value" : "A035C8C19219BA821ECEA86B64E628F8D684696D"
      },
      {
         "key" : "PYTHON_VERSION",
         "value" : "3.10.13"
      },
      {
         "key" : "PYTHON_PIP_VERSION",
         "value" : "23.0.1"
      },
      {
         "key" : "PYTHON_SETUPTOOLS_VERSION",
         "value" : "65.5.1"
      },
      {
         "key" : "PYTHON_GET_PIP_URL",
         "value" : "https://github.com/pypa/get-pip/raw/c6add47b0abf67511cdfb4734771cbab403af062/public/get-pip.py"
      },
      {
         "key" : "PYTHON_GET_PIP_SHA256",
         "value" : "22b849a10f86f5ddf7ce148ca2a31214504ee6c83ef626840fde6e5dcd809d11"
      },
      {
         "key" : "PNPM_HOME",
         "value" : "/root/.local/share/pnpm"
      },
      {
         "key" : "NODE_PATH",
         "value" : "/usr/local/bin:/usr/local/pnpm-global/5/node_modules:/usr/local/lib/node_modules:/root/.local/share/pnpm/global/5/node_modules"
      },
      {
         "key" : "SHELL",
         "value" : "/bin/bash"
      },
      {
         "key" : "PS1",
         "value" : "\\u@\\h:\\w $ "
      },
      {
         "key" : "QL_DIR",
         "value" : "/ql"
      },
      {
         "key" : "QL_BRANCH",
         "value" : "debian"
      }
   ],
   "exporting" : false,
   "id" : "c466d8c4617b5c80529963040e1628cda05551ae4ea204fb5693911fef51fb94",
   "image" : "whyour/qinglong:debian",
   "is_ddsm" : false,
   "is_package" : false,
   "labels" : {
      "maintainer" : "whyour",
      "org.opencontainers.image.created" : "2023-10-30T07:09:26.381Z",
      "org.opencontainers.image.description" : "支持 Python3、JavaScript、Shell、Typescript 的定时任务管理平台(Timed task management platform supporting Python3, JavaScript, Shell, Typescript)",
      "org.opencontainers.image.licenses" : "Apache-2.0",
      "org.opencontainers.image.revision" : "410a123728ed5ef5504e99de7dc1b54a8e06b32a",
      "org.opencontainers.image.source" : "https://github.com/whyour/qinglong",
      "org.opencontainers.image.title" : "qinglong",
      "org.opencontainers.image.url" : "https://github.com/whyour/qinglong",
      "org.opencontainers.image.version" : "debian"
   },
   "links" : [],
   "memory_limit" : 0,
   "name" : "whyour-qinglong-1",
   "network" : [
      {
         "driver" : "bridge",
         "name" : "bridge"
      }
   ],
   "network_mode" : "bridge",
   "port_bindings" : [
      {
         "container_port" : 5700,
         "host_port" : 5700,
         "type" : "tcp"
      }
   ],
   "privileged" : false,
   "service_portals" : [],
   "shortcut" : {
      "enable_shortcut" : false,
      "enable_status_page" : false,
      "enable_web_page" : false,
      "web_page_url" : ""
   },
   "use_host_network" : false,
   "version" : 2,
   "volume_bindings" : [
      {
         "host_volume_file" : "/docker/ql/config",
         "is_directory" : true,
         "mount_point" : "/ql/data/config",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/docker/ql/db",
         "is_directory" : true,
         "mount_point" : "/ql/data/db",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/docker/ql/deps",
         "is_directory" : true,
         "mount_point" : "/ql/data/deps",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/docker/ql/log",
         "is_directory" : true,
         "mount_point" : "/docker/ql/log",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/docker/ql/raw",
         "is_directory" : true,
         "mount_point" : "/docker/ql/raw",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/docker/ql/repo",
         "is_directory" : true,
         "mount_point" : "/docker/ql/repo",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/docker/ql/scripts",
         "is_directory" : true,
         "mount_point" : "/ql/data/scripts",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/docker/ql/upload",
         "is_directory" : true,
         "mount_point" : "/ql/data/upload",
         "type" : "rw"
      }
   ]
}

因为我是旧版青龙迁移 文件夹还是映射的群晖文件夹
群晖/docker/ql/config 映射容器的/docker/ql/config等 如果要使用这份json麻烦建目录/docker/ql/config db deps等

青龙面板教程

参考官方教程 https://blog.lass.cc/posts/double-eleven-jd-automatically-applies-for-price-insurance-assistant/

拉取magicbox代码

接下来在首页创建定时任务,用于拉取代码

任务名称:pull MagicBox
命令/脚本:git clone https://github.com/srcrs/MagicBox.git
定时规则:1 1 1 1 1
添加完成后点击运行,代码便会下载至脚本管理

注意若是国内机器需要使用代理。

安装chrome环境

添加安装chorme环境定时任务,然后手动执行此步骤耗时稍长。

任务名称:install chrome
命令/脚本:MagicBox/install.sh
定时规则:1 1 1 1 1

获取bilibili COOKIE

此方式需要注意若是在服务器获取,需要保持ip一致,才可登录成功。

添加定时任务

任务名称:get bilibili cookie
命令/脚本:MagicBox/MagicBox_amd64_linux bilibili login
定时规则:1 1 1 1 1
添加完成之后,点击执行,打开日志等待二维码出现扫码登录即可,正常会把cookie打印出。

复制cookie

get bilibili cookie
## 开始执行... 2023-11-07 19:44:25

2023-11-07T19:44:26.377+0800    INFO    当前版本: 0.2.3
2023-11-07T19:44:39.014+0800    INFO    
█████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████
████ ▄▄▄▄▄ █  ▀▀█▀▀▄ ▀▄█▄  ▀ █▀█ ▀▄ ██ ██▀ ██  ▀██ ▄▄▄▄▄ ████
████ █   █ ██▄ ▄▄ ██ █▀▄▄▄▀█▄▀███  ▀ █▀ ▀▄▄  ▀▀▄▀█ █   █ ████
████ █▄▄▄█ ██▄▀▀ ▀ ██▄ ▄▄ █  ▄▄▄  ▄ ██▀▄ ▀▀ ▀▄ ███ █▄▄▄█ ████
████▄▄▄▄▄▄▄█▄▀ ▀ █▄█▄█ ▀▄▀ █ █▄█ █ █ █▄▀▄▀▄▀ ▀▄█ █▄▄▄▄▄▄▄████
█████▄█▀▀█▄▄▄   █▄▀█ ▄▀██▄▀▄▄ ▄▄▄▄▀ ▀▀  ▄▀▀▀█ ▀▄  ▀██▀█▄▄████
████▀█ ▀▄▄▄█▄▄ ▄ █▄▀▄▀▄▀▀▀▀▄▀▀▄▄█▄▀▄  ▄▄██▄█ ▄▀▄▄  ▄▄ ▄ █████
██████▀█ ▀▄ ▀▀▀█▀▄▄  ▀▀▀▄ █ ▄▀▄██ ▀▀▄▀▄▀▄▄▄█ ▀▀ █▀▄▀▄ ██ ████
█████ ▀ ▀▄▄██▀█▄█▄ ▀▀▄ █▀██  ▀▀  █▀█▄▄ ▀▄▄ ▀██▀▄█  █▄▄▀▄▀████
████ ▄  ██▄█ ▀ ▄████▄▀   ▄▀███ ▄█▀▀ ▀▀▄ ▄█▄ ▀▀▀▀▄ █▀ ▄▄█▀████
████  ▄▀▀ ▄▀▄▀    ▄ ██▄▄▀▀   ▄▄▀█▄▀█▀▀▀▄▄▀█▀ ▄▀███▀▄▄▄██ ████
████▀ ▀  ▄▄▀▀▄█▀█ ▀▄▀ █▄  █▄  ▀▀ █▀ █▀ ▄ ▄▀ ▀▄▀▄ ▀▀    ▄█████
█████ ██▄▄▄█▀█▀█ ▄   █▀█  █▄ ▄ ▄▀█   ▄▄▀██▄▄ ▄▀██▄▄▀█ ▄▀▀████
████▄█▄  ▄▄▄ █ █▄█ █▄▀▄▀█▄   ▄▄▄ ▄▄▀  █▄  ▄▀ ▄▀▀ ▄▄▄  ▀▀▀████
████▄█ ▄ █▄█  ▄  ██▀▀ ▄  ▄▄▄ █▄█   ▄▄▀ ▄▄█▄█▄ █▄ █▄█ ▄▀ █████
████  ▄█▄▄▄▄▄  ▀ ▀▀▄█  █▄ ▄█ ▄▄▄ ▄▄▄█ ▄  ▄█▀██▀▄▄▄▄  ▄ ▄▀████
████▄▄█▄▄█▄██▀ █▄▄ ▀█▀ █ ▀  ▀██▀█  █  █▄█▄█  ▄█ ▀▀ █  ▄█▄████
████  ▄▄ ▀▄▄▀▄  ▄█▀▀▄▄█ ▄██ ▀▄▀▄█▄█▄█▀▀ ▄  ▀▀█▀▀▄█▄▀▀ ▄██████
██████▄ ▀ ▄▄▀ ▄▀  ▄▀█ ▀▄ ▀ █ ▄▀ ▀██▄▀█▄▄█  ▄▀█▀ █▄▀█▀▀▄██████
████▀▄▄▀█ ▄ █  █▄████▀▄ ▀▄█▀▄▀█ ▀▄▀▀ █▄█▄▀█▀▄ ▀▄▄█ ▀▀ ▀█ ████
█████▀█ █▄▄▀▄  █ ██▀▄ ▄█ ▄▀   ▄▄█▄ ▀██ ▄█▀ ▄▄█▀▀█▀█▀  ▀█▀████
████▄ █▀▄█▄▄ ▀▄  █▄█ ▄▀▀█▀▄██  ▀▀ ▄▀██▄▄  █ ▀▀ █▀▄▀▀▀▀▄▀ ████
████▄ ▀▄▄▄▄ █▄▄█▀ ▄▄▀▄▀█▀██▀ ▀▀▄▀▀█▄▀▄█▄▄█▄█▀▄▀▀▀  ▀▄▀█▄▄████
███████▄██▄█  ▀█▀▀ ██▄▀▄█▄▄▄ ▄▄▄ ▄█▄▀▀▀▄▄█ ▀▀ ▀█ ▄▄▄ ▀▄ ▄████
████ ▄▄▄▄▄ █▄▄███  ▄ ▄▀▀▄ ▄█ █▄█ ▄ █ ▄▄ █▄▄▀ █▀█ █▄█ ▄██▀████
████ █   █ ████▄ ▀█▀███▀▄▀█ ▄▄▄▄▄ █▄▄ ▄▀  █  ▀▀▄ ▄▄ ▄██▄▄████
████ █▄▄▄█ █▀ ▀▀█▀▄ █▀▄▄██▀▀▄█ ▄▀▀█▄█ ▄█▄▀▄▀███ ▀█ ▀ ▀ ▄ ████
████▄▄▄▄▄▄▄██▄▄▄█▄▄▄██▄▄█▄█▄██▄▄█▄▄████▄▄▄█▄█▄▄███▄█▄█▄██████
█████████████████████████████████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

2023-11-07T19:44:39.014+0800    INFO    请在30秒内完成扫码登录
2023-11-07T19:45:17.091+0800    INFO    当前登录状态为:    {"login": true}
2023-11-07T19:45:17.094+0800    INFO    获取到的cookie: 
{"cookies":[{"name":"bili_ticket","value":"eyJhbGciOiJIUzI1NiIsImtpZCI.............}]}

复制{"cookies":[{"name":"bili_ticket","value":"eyJhbGciOiJIUzI1NiIsImtpZCI………….}]}
编辑填写到脚本管理MagicBox/configs/bilibili.yml 里面的cookie的”里

添加bilibili定时任务

任务名称 bilibili task
命令/脚本:MagicBox/MagicBox_amd64_linux bilibili exec
定时规则:10 7 *
保留bilibili task任务,其余三个pull MagicBox install chrome get bilibili cookie为了拉取代码、安装环境、获取cookie的定时任务,可以设置为禁止执行,至此已全部完成。
点击运行一次

## 开始执行... 2023-11-07 19:48:25

2023-11-07T19:48:26.145+0800    INFO    当前版本: 0.2.3
2023-11-07T19:48:26.145+0800    INFO    任务: bilibili[false], 用户: doduo, 开始执行
2023-11-07T19:48:36.104+0800    INFO    当前登录状态为:    {"login": true}
2023-11-07T19:48:43.740+0800    INFO    用户名: 我是用户名  {"callid": "3f64a9e6-xxxx-xxxx-xxxx-465f8ffcf97d"}
2023-11-07T19:48:43.740+0800    INFO    当前等级: LV4   {"callid": "3f64a9e6-xxxx-xxxx-xxxx-465f8ffcf97d"}
2023-11-07T19:48:43.740+0800    INFO    当前成长值: 5060, 下一等级成长: 10800  {"callid": "3f64a9e6-xxxx-xxxx-xxxx-465f8ffcf97d"}
2023-11-07T19:48:43.740+0800    INFO    硬币余额: 620   {"callid": "3f64a9e6-xxxx-xxxx-xxxx-465f8ffcf97d"}
2023-11-07T19:48:43.740+0800    INFO    每日登录任务已完成   {"callid": "3f64a9e6-xxxx-xxxx-xxxx-465f8ffcf97d"}
2023-11-07T19:49:07.333+0800    INFO    成功获取到视频列表数量:40  {"callid": "3f64a9e6-xxxx-xxxx-xxxx-465f8ffcf97d"}
2023-11-07T19:49:33.040+0800    INFO    每日观看视频任务执行成功:https://www.bilibili.com/video/BV1xN411g77q/   {"callid": "3f64a9e6-xxxx-xxxx-xxxx-465f8ffcf97d"}
2023-11-07T19:49:55.372+0800    INFO    视频投币成功: https://www.bilibili.com/video/BV1xN411g77q/    {"callid": "3f64a9e6-xxxx-xxxx-xxxx-465f8ffcf97d"}
2023-11-07T19:50:07.492+0800    INFO    每日投币任务已完成   {"callid": "3f64a9e6-xxxx-xxxx-xxxx-465f8ffcf97d"}
2023-11-07T19:50:24.193+0800    INFO    分享视频任务已完成: https://www.bilibili.com/video/BV1xN411g77q/ {"callid": "3f64a9e6-xxxx-xxxx-xxxx-465f8ffcf97d"}
2023-11-07T19:50:41.380+0800    INFO    直播签到任务执行成功  {"callid": "3f64a9e6-xxxx-xxxx-xxxx-465f8ffcf97d"}
2023-11-07T19:50:41.386+0800    INFO    cookie更新成功, bilibili, doduo

## 执行结束... 2023-11-07 19:50:41  耗时 136 秒     

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注