[DLC] api for classes

Joseph Booker joe at neoturbine.net
Tue Jul 10 18:55:59 CDT 2007


> I would suggest, since there is no api published, that you contact
> Information Services before you go about doing something that may be
> questionable to acceptable use of the system.

I've no intention to do anything fancy, was just trying to do some queries

If this helps anyone else, go to class search, select a term, click a
subject, save the source, and the following script tabifies it:

#!/usr/bin/perl
use strict;
use warnings;

my @classes;
my $counter = my $status = -1;
while (<>) {
        if(m|<TD HEIGHT=19 COLSPAN=6><img
src='/servlets/cs/peoplesoft8/cache/PT_PIXEL_ENG_1.gif'
alt=''></TD>|) {
                $counter++;
                $status = 1;
                $classes[$counter] = "";
        }
        next if(m|<TD COLSPAN=3  VALIGN=TOP ALIGN=LEFT>| or m|</TD>|);
        if($status == 1 and m|<DIV CLASS='PSEDITBOX' >(.+)</DIV>|)
                {$classes[$counter] .= "\t$1";}
}
foreach (@classes) {
        print;print "\n";
}


I was trying to find 2-credit classes ( ./tabify-classes.pl *.classes |awk
'{if ($5 !~ /4|0/) print; }' turns up nothing with all the catagories I
was interested in)

Does anyone know about the 2 credit classes? We were told at orientation
CTI would start offering them


More information about the DLC mailing list