Coder Social home page Coder Social logo

jlu_auto_submission's Introduction

JLU_AUTO_SUBMISSION

Automatic health report submission for JLU

Requirments

  • Chrome v81
  • Chrome Driver v81
  • python3
  • Selenium

Simple configuration is required, just Google it.

Usage

Basic usage

Please fill in the following vars. Multiple users can be filled in to submit.

(Recommended) Use logpath to specify the log storage path, otherwise please leave it as it is.

# personal info
username = ["XXX", "XXX"]
password = ["XXX", "XXX"]
logpath = r""

Then you can run python3 submit.py to check the result.

Advanced usage

  • WeChat notification

Please refer to the WeChat Enterprise API doc.

(Recommended) Please fill in the following vars to use WeChat notification.

# Push
secret = ""
corpID = ""
agentID = ""
pushuser = ""
  • Headless mode
  • Submit regularly
    • For Windows, you can use Task Scheduler to submit regularly.
    • For Linux/Unix, you can use crontab to submit regularly.
    • Tips: It is recommended to set the trigger to 1 AM or 2 AM to avoid peak traffic.

Known Issue

Please use xpath to fill in these items manually.

ele = browser.find_element_by_xpath('/html/body/div[4]/form/div/div[2]/div[3]/div/div[1]/div[1]/table/tbody/tr[2]/td/div/table/tbody/tr[34]/td[4]/div/div/div/div/input')
ele.send_keys("上海市")
ele.send_keys(Keys.ENTER)

Future

  • Automatic notification
    • Use E-mail to automatically notify.

jlu_auto_submission's People

Contributors

joveryz avatar

Stargazers

Meng avatar Jie Weng avatar

Watchers

James Cloos avatar  avatar

Forkers

twesix

jlu_auto_submission's Issues

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.