Tom Morris

26
Nov
2006

XPath: UCL Admissions

I’d like eventually to have a simple way of getting data from all the UK universities admissions departments. Considering that I’m not particularly bothered about getting any more degrees, I’m not totally sure why. But it certainly would be useful.

So, here are some XPaths for one college - namely, UCL.

First up, the undergraduate page:

Course Titles: //tr[count (td) = 5]/td[1]/a
Course Type: //tr[count (td) = 5]/td[3]
Course Code: //tr[count (td) = 5]/td[5]

Secondly, postgraduate admissions:

Courses: //tr[count (td) = 3 and @height = '12' and td/@height != "25"]
Links: //tr[count (td) = 3 and @height = '12' and td/@height != "25"]/td[1]/a
Qualification: //tr[count (td) = 3 and @height = '12' and td/@height != "25"]/td[3]

Now, universities. Get your act together and make all this information available in an open XML format and stop me having to write these blog entries!

Comments are closed.