Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: web::scraper using an xpath

by ag4ve (Monk)
on Dec 10, 2010 at 16:09 UTC ( [id://876495]=note: print w/replies, xml ) Need Help??


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]',

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://876495]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-24 02:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found