Skip to content

Instantly share code, notes, and snippets.

@corusm
Created March 10, 2021 19:01
Show Gist options
  • Save corusm/54118a6ee861553c9bedec3c010bb7b9 to your computer and use it in GitHub Desktop.
Save corusm/54118a6ee861553c9bedec3c010bb7b9 to your computer and use it in GitHub Desktop.
for (let to = 1; to < tab.length-1; to++) {
// console.log(tab[to])
if (tab[to].includes('T3')) {
try {
let modul = tab[to].split('td')[1].trim().substr(15).split('<')[0]
let kurs = tab[to].split(',800,600);">')[1].split('</a>')[0]
let zahlen = tab[to].split('<td class="tbdata" style="text-align:right;">')
let credits = zahlen[2].trim().split('<')[0]
let note = zahlen[3].trim().split('<')[0]
grades.push({ modul: modul, kurs: kurs, credits: credits, note: note })
} catch(e) {
// console.log('error')
}
} else if (tab[to].includes('Friedrichshafen') && tab[to].includes('Summe')) {
totalCredits = tab[to].split('nowrap;"> ')[1].split(',0')[0]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment