Skip to content

joveryz/JLU_AUTO_SUBMISSION

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Automatic health report submission for JLU

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages