diff --git a/.idea/artifacts/Crawler_jar.xml b/.idea/artifacts/Crawler_jar.xml index ec9b2ab..7f74e75 100644 --- a/.idea/artifacts/Crawler_jar.xml +++ b/.idea/artifacts/Crawler_jar.xml @@ -1,99 +1,83 @@ - $PROJECT_DIR$/../../caculator + $PROJECT_DIR$/out/artifacts/Crawler_jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Crawler.iml b/Crawler.iml index 9cddd20..e1a06d6 100644 --- a/Crawler.iml +++ b/Crawler.iml @@ -1,5 +1,8 @@ + + diff --git a/README.md b/README.md index 905fa3c..7de94fb 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ Crawler for NTU BAC lab === -## Java version: 16 -This is an automated crawler for BAC lab. -The crawler will crawl data from the NTU accounting web, after sorting the data, an Xls file will be exported to the /output folder. +The crawler will crawl 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 --- @@ -15,7 +13,8 @@ Note How to use? --- -1. Package the file with Maven and run the output `.jar` file. The file would be put in `/target` folder (remember to set the main class). +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 `Crawler` class. > / src / main / java / Crawler.java -3. Convert the `.jar` file to `.exe`, open it by simply double clicks. Visited [Launch4J](http://launch4j.sourceforge.net/) to get more details. +3. Convert the `.jar` file to `.exe`, open it by simply double clicks. Visit [launch4j](http://launch4j.sourceforge.net/) for more detail. + diff --git a/output/Sep_16.xls b/output/Sep_16.xls deleted file mode 100644 index 75ea01a..0000000 Binary files a/output/Sep_16.xls and /dev/null differ diff --git a/src/main/java/module/ExcelManipulate.java b/src/main/java/module/ExcelManipulate.java index 6597a4f..874d7e8 100644 --- a/src/main/java/module/ExcelManipulate.java +++ b/src/main/java/module/ExcelManipulate.java @@ -39,7 +39,7 @@ public void saveDataInExcel(List list, String path) throws IOException { StringBuilder sb = new StringBuilder(); String[] date_arr = new Date().toString().split(" "); sb.append(date_arr[1]).append('_').append(date_arr[2]); - FileOutputStream fileOut = new FileOutputStream(path + "/output/" +sb + ".xls"); + FileOutputStream fileOut = new FileOutputStream(path + sb + ".xls"); wb.write(fileOut); fileOut.close(); } diff --git a/src/main/resources/META-INF/MANIFEST.MF b/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e9bf60e --- /dev/null +++ b/src/main/resources/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: Crawler + diff --git a/target/classes/Crawler.class b/target/classes/Crawler.class deleted file mode 100644 index 9fd45e5..0000000 Binary files a/target/classes/Crawler.class and /dev/null differ diff --git a/target/classes/config/EnvironmentVariable.class b/target/classes/config/EnvironmentVariable.class deleted file mode 100644 index 015b945..0000000 Binary files a/target/classes/config/EnvironmentVariable.class and /dev/null differ diff --git a/target/classes/config/GetDriver.class b/target/classes/config/GetDriver.class deleted file mode 100644 index 515ab75..0000000 Binary files a/target/classes/config/GetDriver.class and /dev/null differ diff --git a/target/classes/module/Browsing.class b/target/classes/module/Browsing.class deleted file mode 100644 index 097285c..0000000 Binary files a/target/classes/module/Browsing.class and /dev/null differ diff --git a/target/classes/module/DataProcessor.class b/target/classes/module/DataProcessor.class deleted file mode 100644 index 1cfcc33..0000000 Binary files a/target/classes/module/DataProcessor.class and /dev/null differ diff --git a/target/classes/module/ExcelManipulate.class b/target/classes/module/ExcelManipulate.class deleted file mode 100644 index 458c5a8..0000000 Binary files a/target/classes/module/ExcelManipulate.class and /dev/null differ diff --git a/target/classes/module/InputProcessor.class b/target/classes/module/InputProcessor.class deleted file mode 100644 index ad82356..0000000 Binary files a/target/classes/module/InputProcessor.class and /dev/null differ diff --git a/target/classes/obj/ObjProcessor.class b/target/classes/obj/ObjProcessor.class deleted file mode 100644 index a578edc..0000000 Binary files a/target/classes/obj/ObjProcessor.class and /dev/null differ diff --git a/target/classes/obj/Time.class b/target/classes/obj/Time.class deleted file mode 100644 index 9035b60..0000000 Binary files a/target/classes/obj/Time.class and /dev/null differ