Beispiel #1
0
def updateDB():
    ## this function updates the database with the latest from isis.jhu.edu for each term and each focus area
    for term in ["Fall 2015"]:
        print("");
        print(term);
        for focusA in ["instrumentation","celltissue","systems","imaging","computational"]:
            print("");
            print(focusA);
            file = open("input/"+focusA+".txt");
            for classNumber in file:
                sec = section(classNumber.strip(),term,focusA);
            ##    print(classNumber.strip());
                scrap(sec);
                ## this function scraps isis for data and updates the database
            file.close();