Giter Site home page Giter Site logo

cmdloginprototype's Introduction

CmdLoginPrototype

北京化工大学校园网命令行登录原型

开发环境

Python 3.7.6

环境安装

pip install -r requirements.txt

文件说明

├── LICENSE
├── README.md 
├── main.py --- 主脚本
├── AutoLogin.py ---自动登录脚本
├── requirements.txt --- 前置库
└── utils --- 校园网api调用库
    ├── Xencode.py --- Xencode加密方法
    ├── __init__.py --- python包基础文件
    ├── base64.py --- jQuery base64加密方法
    ├── req.py --- 请求方法
    └── utils.py --- 工具方法

待完成功能

  • logout方法
  • 获取当前系统平台及其标识
  • 日志系统
  • 用户数据获取
  • 登录状态获取
  • 登录密码秘文输入
  • 自动登录

使用说明

main.py

登录

python main.py login

查询

python main.py info

登出

python main.py logout

AutoLogin.py

预配置

使用自动登录需要向环境变量中写入你的账户名与密码,请自行决定是否接受

用户名: SRUN_LOGIN_USERNAME

密码:SRUN_LOGIN_PASSWORD

Windows

请前往控制面板寻找

bash/zsh

临时变量:

export SRUN_LOGIN_USERNAME = {用户名}
export SRUN_LOGIN_USERNAME = {密码}

配置完后直接运行AutoLogin.py即可

cmdloginprototype's People

Contributors

edwin-h-j avatar

Stargazers

 avatar  avatar  avatar ZHICHENG ZHANG 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.