Giter Site home page Giter Site logo

pfvpn-checkin's Introduction

PFvpn-checkin

用于PFvpn自动签到,适用于nonebot2

由于官网加了五秒盾,直接请求方式失效,故采用playwright进行签到

  • 新增异步协程版,可进行多账号签到,如使用nonebot需修改init.py中发送图片名称,添加签到账号前三位,如将result.png修改为result978.png

12月11日更新

网站在五秒盾之后又加了一个随机出现的验证码,并且频繁访问会被暂时ban掉
可以通过ddddocr进行打码验证,但验证码不是每次都出现,并且验证码识别准确度堪忧,测试后会有小概率无法通过,新脚本暂时不更新了(主要是菜)


脚本可以使用,稳定性未知,代码很烂,能跑就行


使用方式

首先安装playwright

pip install playwright
python -m playwright install

修改checkin.py 中要进行签到的账号和密码

linux无图形界面需要将第七行代码headless=False改为headless=True

  • 非nonebot使用

    直接使用checkin.py文件即可,自行设置定时任务

  • GitHub action使用
    fork本项目,在secrets中添加USERSPWDS两个变量,不同账号使用;隔开,自行修改定时运行时间。 未充分测试,且结果无反馈,请自行测试。

  • nonebot使用

    checkin.py文件放在bot根目录,nonebot_plugin_PFvpn_checkin文件夹放置在src/plugins文件夹中,按注释修改init.py文件即可

    脚本会定时执行,也可手动进行签到,签到完成后会将页面截图发送给设定的QQ

    截图

网页截图

pfvpn-checkin's People

Contributors

qiuyebai-1226 avatar

Stargazers

 avatar 零下 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.