This file contains hidden or 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
| #!/usr/bin/python3 | |
| import requests | |
| import re | |
| import time | |
| import sys | |
| projectorAddress = 'http://192.168.1.87' | |
| username = 'EPSONWEB' | |
| password = 'admin' |
This file contains hidden or 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
| $('td:contains("2.0")').parent().remove(); //usunięcie wpisów z oceną 2 | |
| $('td:contains("k.cz.")').parent().remove(); //usunięcie wpisów z ocen cząstkowych | |
| $('td:contains("---")').parent().remove(); //usunięcie wpisów bez ocen | |
| var sum=0; //suma ECTS | |
| var mulSum=0; // suma ECTS * ocena | |
| $('td[title="ocena"]').each(function(){ | |
| mulSum += parseFloat($(this).text()) * parseFloat($(this).next().next().text()); | |
| sum += parseFloat($(this).next().next().text()); | |
| console.log(parseFloat($(this).text()), parseFloat($(this).next().next().text())); | |
| }); |