in reply to Re^3: web::scraper using an xpath
in thread web::scraper using an xpath

nope, nothing else needed to be change. that worked perfectly. damned if i know why, but it had the result i was asking for :)

i'm going to have to read more into xpath... what would be cool is i could figure out how to put a variable in the scraper function so that i could return even or odd in tr's instead of building up my xpath... for the moment though, i'm content. thanks whoever posted that.

Replies are listed 'Best First'.
Re^5: web::scraper using an xpath
by Anonymous Monk on Dec 10, 2010 at 18:52 UTC
    Odds
    process '//*/table[@class="someclass"]//tr[position() mod 2 = 1]',
    Evens
    process '//*/table[@class="someclass"]//tr[position() mod 2 = 0]',