Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ public static String getCourseDescription(String coursePrefix, String courseSuff
Element courseResults = document.getElementById("lblCourseResultText");
if (courseResults == null) return "Description not found";


Element courseResults = document.getElementById("lblCourseResultText");
Elements resultsTables = courseResults.getElementsByClass("courseresultstable");
driver.quit();
boolean isDescription = false;


for (Element table : resultsTables) {
for (Element data : table.getElementsByTag("td")) {
String text = data.text().trim();
Expand All @@ -65,6 +69,7 @@ public static String getCourseDescription(String coursePrefix, String courseSuff
public static void main(String[] args) {
String description = getCourseDescription("AAEC", "2580");
System.out.println(description);

}
}

Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ spring.application.name=course-information

spring.datasource.url=jdbc:mysql://optimalscheduledatabase.cj6soes8wsjl.us-east-2.rds.amazonaws.com:3306/CourseInformation
spring.datasource.username=admin
spring.datasource.password=DevD0gs2425
spring.datasource.password=password


spring.jpa.hibernate.ddl-auto= create
spring.jpa.hibernate.ddl-auto=create
spring.jpa.show-sql=false
spring.jpa.properties.hibernate.format_sql=true
logging.level.org.hibernate.type.descriptor.sql=trace


# will control when we update the building
update.buildings= true