Java version: 16
The scraping program will scrape data from the NTU accounting web, after sorting the data, a Xls file will be exported to the folder where this program is within.
- Load the config.yml (From local, pleas put it under the root path). config.yml must existed.
- Take care of the format of yaml file, all the symbols are meaningful (include the space). See yaml doc for detail.
- Here's how the config.yml should look like:
Key | Value |
---|---|
bossid | pi's account |
assid | assistant's account |
asspwd | assistant's password |
OS | #mac #windows |
member | name list |
- Put the
chromedriver / chromedriver.exe
under the root path, here download the chromedriver. - If you use Windows system, change the OS: mac into OS: windows in the
config.yml
. If you use macOS system, make sure you have allowed the chromedriver driven by the system (Open the privilege in the security and privacy).
OS: mac -> OS: windows
- Package the file with Maven and run the output
.jar
file (Check out if the main class is included in). - Directly run this program through the
main
method under theScraping
class.
/ src / main / java / Scraping.java
- Convert the
.jar
file to.exe
, open it by simply double clicks. Visit launch4j for more detail.