Skip to content

Commit

Permalink
Merge pull request #62 from justinowusu/proj01
Browse files Browse the repository at this point in the history
Proj01 -> Project Master
  • Loading branch information
CDLlo authored Mar 9, 2018
2 parents 4392b47 + cbbe234 commit 9d70cf2
Show file tree
Hide file tree
Showing 10 changed files with 650 additions and 233 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<path id="project.class.path">
<pathelement location="build" />
<pathelement location="lib/junit-4.8.2.jar" />
<pathelement location="lib/jsoup-1.11.2.jar"/>
</path>

<pathconvert property="mf.classpath" pathsep=" ">
Expand Down
Binary file added lib/jsoup-1.11.2.jar
Binary file not shown.
22 changes: 20 additions & 2 deletions src/edu/ucsb/cs56/projects/scrapers/ucsb_curriculum/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,22 @@
public class Main{
/** main method to demonstrate that the page is being accessed
@param args String arguments in the order of: Department (CMPSC), quarter (Spring), year (2014), and level (Undergraduate)
* @throws Exception
*/
public static void main(String [] args) {
try {
public static void main(String [] args) throws Exception {
System.out.println("Hello");
//System.out.print("num_lectures = ");
UCSBCurriculumSearch uccs = new UCSBCurriculumSearch();
final String dept = "CMPSC"; // the department
final String qtr = "20181"; // 2012 = S11 [yyyyQ, where Q is 1,2,3,4
// (1=W, 2=S, 3=M, 4=F)]
final String level = "Undergraduate";
//uccs.parseLecture("test");
uccs.loadCoursesJsoup(dept, qtr, level);
//uccs.isLectureWithoutSection("efg");
//System.out.print(uccs.loadCoursesJsoup(dept, "20181", level));
//System.out.println("\n \n \n \n \n" + uccs.getPage(dept, "20181", level));
/*try {
System.setProperty("javax.net.ssl.trustStore","jssecacerts");
// Asks for user input and outputs corresponding lectures/sections
Expand Down Expand Up @@ -61,6 +74,11 @@ public static void main(String [] args) {
System.err.println(e);
e.printStackTrace();
}
*/

//Testing getMainPag
//String output = UCSBCurriculumSearch.getMainPage();
//System.out.print(output);
}

/** Parses the quarter to the correct corresponding number that represents it.
Expand Down
Loading

0 comments on commit 9d70cf2

Please sign in to comment.