|more useful options|
web::scraper using an xpathby ag4ve (Monk)
|on Dec 10, 2010 at 08:37 UTC||Need Help??|
ag4ve has asked for the
wisdom of the Perl Monks concerning the following question:
i'm trying to get data out of a web page. i figured i'd use web::scraper (it looked easy enough) so, i wrote this:
and, data dumper says i'm only getting the first line of the table. where the table would look something like this and i want all of it:
so, i'm guessing that the question is how to set the //td/tr xpath strings up so that i get multiple rows? or if not, how do i setup the scraper function so that it loops to the next row? or what other module might i try to accomplish this?
ok, so thanks to the anonymous poster, here's what i've come up with that works damn nice:
thanks all, and sorry about not posting full code and just the snip - tried not to make the post too long.