Automatic health report submission for JLU
- Chrome v81
- Chrome Driver v81
- python3
- Selenium
Simple configuration is required, just Google it.
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.
- 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.
- For Windows, you can use
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)
- Automatic notification
- Use E-mail to automatically notify.