🐴 SEU DailyReport
Automation tool for some repetitive daily report tasks during Covid-19.
This tool is explicitly written for SouthEast University students.
You may adapt it to your school's reporting platform.
🎁 Usage
This tool is based on puppeteer and includes puppeteer-core
, which means you should have Chrome or Chromium installed first.
-
Clone the repository to a proper location.
-
Create
config.js
according toconfig.js.example
, fill inbrowser.executablePath
andbrowser.userDataDir
properly. -
Run
node main.js
to validate your settings. -
Setup a proper cron job, then enjoy :)
☁️ Push API
This tool may push the current status to a RESTful API after each report.
The feature is designed for Telegram pushing. However, it should work in other scenarios (Mail, IFTTT, QQ, SMS, etc.)
To use it, simply set push_api
to your API endpoint in config.js
.
The tool will make a POST request using application/x-www-form-urlencoded
body encoding.
HTTP body contains one parameter: message=<A friendly message containing emoji>
.
You may authenticate yourself via query string or a serverside relay script.