Giter VIP home page Giter VIP logo

suda-net-daemon's Introduction

苏州大学校园网守护进程

英文README

苏州大学校园网守护进程,妈妈再也不用担心老子实验室电脑断网了!

主要适用于无人值守的环境下确保某台设备网络稳定(请确保校园网账户余额充足):

  • 多设备连接时,超过3台设备会挤掉其他设备;
  • 每月第一天00:00左右自动断网。

主要运行流程:

  1. 判定登录状态:检查登录页面是否存在登陆状态关键字、账号信息输入框以判定当前登录状态
  2. 尝试登陆:未登录则尝试登录
  3. 休眠指定时间,并进入1.,无限循环
  4. 结束运行:手动停止运行或被操作系统终止

使用

使用方式有两种,都需要先配置好账号信息和 Chrome 驱动:

  • 发行版,无 Python 环境依赖,直接运行 .exe 文件;
  • 源码,本地 Python 命令运行。

配置账号和驱动

  1. configurations.json 中编辑校园网登录IP、账号密码等配置信息,默认配置格式如下:

    {
        "login":{
            "account":"",
            "password":""
        },
        "daemon":{
                "host": "http://10.9.1.3/",
                "frequencies": 10
        }
    }
  2. Chrome 浏览器驱动下载地址下载和本地 Chorme 浏览器对应版本的驱动后替换 chromedriver.exe

运行发行版

下载发行版,并按照说明运行。

运行源码

  1. 安装 Python 依赖:

    pip install -r requirements.txt
  2. 运行如下命令:

    python daemon.py

Todo

  1. 开机启动
  2. 可视化:GUI界面+托盘
  3. 轻量化:去除 ChromeDriver 依赖

suda-net-daemon's People

Contributors

les1ie avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

songzijiang zm31

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.