Giter VIP home page Giter VIP logo

drcomexecutor's Introduction

Drcom Executor

cqu-tool-bucket Codacy Badge Liscence pypi download Upload Python Package

Drcom Executor 是一个基于 Python3 的第三方重庆大学 Dr.COM 登录器。

这个程序可以用来代替官方版的Drcom登录器来连接重庆大学校园网.

特性

与其他大多数drcom系列项目具有差异的是,本登陆器的目标是让PC端使用者感受不到drcom的存在,实现插网线即能上网和开热点,而且无需在前台驻留任何窗口或终端。

为了实现该目标,该登陆器加入了

  • 暴力重连:周期性检查外部网络联通性,并捕捉任何网络错误,回缩到合适的阶段开始重连。可能导致退出的错误见wiki
  • 指数退避:在持续遇到网络问题时,逐渐增加重试休眠间隔(默认最高500s),避免系统资源占用。

由于其特殊的设计,你可以考虑直接将其添加到开机启动项中(见wiki ),它就会在后台默默无闻的完成它的工作。(即使从没有校园网的地方突然接入校园网,你也至多需要等待一个指数退避周期就能开始正常上网)

本登陆器还支持

  • 自动查询剩余流量与付费组
  • 开包即用,直接输入用户和密码,无需配置
  • 完美支持Mac和Linux,在Windows上也能稳定运行

安装和使用

1. 常规使用

  1. 安装Python
  2. 安装DE:pip install cqu-de
  3. 在命令行中输入cqu-de即可开始运行
  4. 首次运行,需要输入上网帐号和密码

上网帐号和密码会存储在你的电脑上,如需清除记录,可使用cqu-de -r

2. 进阶使用

请参见wiki:

TODO

  • 日志系统
  • 基于指数退避的自动重连机制
  • 更丰富的配置选项
  • 其它系统的自启动教程wiki

声明

  1. 本程序核心代码主要基于 drcom-generic
  2. 本程序开放源代码,可自行检查是否窃取你的信息。
  3. 本程序不存储用户的帐号,密码。

drcomexecutor's People

Contributors

0xseanll avatar loopyme avatar zombie110year avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

drcomexecutor's Issues

windows系统下无法正常连接网络

Python版本: 3.8.5

输入账号密码后, 会打印各种账户信息, 并且提示"登陆成功". 但是仍然不能连入外网, 打开网站会重定向到Drcom登录页面!

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.