https://github.com/iamsad5566/web_scraping_java
Automatically caculating monthly payment for BAC lab in NTU
https://github.com/iamsad5566/web_scraping_java
accounting java ntu scraper
Last synced: 7 months ago
JSON representation
Automatically caculating monthly payment for BAC lab in NTU
- Host: GitHub
- URL: https://github.com/iamsad5566/web_scraping_java
- Owner: iamsad5566
- Created: 2022-01-08T11:37:11.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-14T15:47:13.000Z (almost 3 years ago)
- Last Synced: 2023-03-16T18:32:40.568Z (over 2 years ago)
- Topics: accounting, java, ntu, scraper
- Language: Java
- Homepage:
- Size: 46.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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](https://www.cloudbees.com/blog/yaml-tutorial-everything-you-need-get-started) 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](https://chromedriver.chromium.org/) 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: windowsHow 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
3. Convert the `.jar` file to `.exe`, open it by simply double clicks. Visit [launch4j](http://launch4j.sourceforge.net/) for more detail.