Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.56 KB

File metadata and controls

31 lines (25 loc) · 1.56 KB

Web scraping for NTU BAC lab

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.

Note

  • 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

How to use?

  1. Package the file with Maven and run the output .jar file (Check out if the main class is included in).
  2. Directly run this program through the main method under the Scraping class.

/ src / main / java / Scraping.java

  1. Convert the .jar file to .exe, open it by simply double clicks. Visit launch4j for more detail.