An open API service indexing awesome lists of open source software.

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

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: 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
3. Convert the `.jar` file to `.exe`, open it by simply double clicks. Visit [launch4j](http://launch4j.sourceforge.net/) for more detail.