Created
April 21, 2017 00:35
-
-
Save tugrulcan/c864cd782e045f4a8135c254606fb7fc to your computer and use it in GitHub Desktop.
Getting course ECTS from MCBU catalog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Getting course ects from http://katalog.cbu.edu.tr/Site/CourceStructure.aspx?ProgramID=1339&lang=1 | |
var course_code_list = []; | |
$("#CourseStructure tr").each(function() { | |
var course_code = $(this).find("td").eq(0).text(); | |
var course_ects= []; | |
course_ects.push( parseInt( $(this).find("td").eq(5).text())); | |
if(course_code != "" && course_code !="Kodu" && course_code !="Teknik Seçmeli Ders" && course_code !="Toplam" && course_code.indexOf("Dönem") <= -1) | |
{ | |
course_code_list.push({ | |
course_code: course_code, | |
course_ects:course_ects | |
}); | |
} | |
}); | |
j = JSON.stringify(course_code_list) | |
//copy(j) //ctrl + c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment