Using Selenium to submit daily health reports.
We (as the creator of this tool) has NO responsibility for any damages you suffer as a result of using our products or services.
YOU TAKE YOUR OWN RISK BY USING OUR PRODUCT.
- .NET Core SDK to run C# code in Linux/MacOs/Windows
- 这里多说一句:现在已经是 0202 年了,
.NET Framework不等于.NET Core,后者是完美支持跨平台,C#语言【支持】跨平台
- 这里多说一句:现在已经是 0202 年了,
- Chrome
- The Chrome driver that matches the version of Chrome
Go to the Action page of this repository for the latest binaries.
- Permit the binary.
- Run the binary.
-
Download and install (except the Chrome driver) those prerequisites above;
-
Customize the configuration file appsettings;
-
Start a command line prompt at the root of the project and type in the following lines:
cd src/DailyHealthReportZju dotnet restore dotnet run
-
run
sudo apt install chromium-chromedriver -
Customize the configuration file appsettings
- and setting the field
PathToChromeDriverwith/usr/lib/chromium-browser
- and setting the field
-
Start a command line prompt at the root of the project and type in the following lines:
cd src/DailyHealthReportZju dotnet restore dotnet run
If this is the first time you run, please follow the instruction in the "Customize" Section below. Do NOT set the field IsFullAutoMode to be true.
After that:
- run the APP and login with your account in the Chrome pop-up manually.
- Then, close the browser and run the program again.
- OR set your
UsernameandPasswordin fileappsettings.secret.jsonbefore running the APP
And then, please follow the instruction in the console to complete your geometric information.
- Make a copy of
appsettings.jsonand name itappsettings.secret.json; - Go to file
appsettings.secret.jsonand set fieldIsFullAutoModeto be false; - check every item in that file;
- check if every item in
KeyWordsmeets your need - check if
PathToChromeDriveris pointing to the Chrome driver you have downloaded - set up
UsernameandPasswordfields- if you don't trust this APP, you could either:
- audit the source code of the program;
- or leave blank and log in manually every time the cookies are expired.
- if you don't trust this APP, you could either:
- check if every item in
- Run the program and check if everything goes as expected;
- If you want full automation, go to
appsettings.secret.jsonand set the fieldIsFullAutoModeto betrue; - If you are annoyed by the pop-up of the Chrome browser, set
IsHeadlessto betrue;
- Make a hosted and scheduled service for Linux server