quickhac / qhac-common

Common libraries for use in QuickHAC applications
3 stars 1 forks source link

Add school field to student data type (and scrape data from HAC) #10

Closed mdciotti closed 10 years ago

tristanseifert commented 10 years ago

On RRISD, on the student overview page, a student's school can be found at this XPath: //*[@id="ctl00_plnMain_dgStudents"]/tbody/tr[<row>]/td[2], or on the student info page at //*[@id="ctl00_BannerTitle"]/label[4].

On AISD, the school name can be found on every page at //*[@id="_ctl0_tdNavBar"]/p[1]/span.

I'm not how sure how useful XPaths may come in handy for how qhac-common works, but they should at least be able to serve as a reference as to the general whereabouts and code needed to find the appropriate elements.

xsznix commented 10 years ago

Implemented in TypeScript with commit https://github.com/quickhac/qhac-common/commit/d1b35ad7bbcc74fc705f61f35f8641dc6fce748d.

xsznix commented 10 years ago

Implemented in Java with commit 16b9d6776aaa7e0881fccbe62b015894d055e920.