backyardbill has asked for the wisdom of the Perl Monks concerning the following question:
# ============ this is the HTML snipit from Firebug ================== +======== <td class="fex_standardblack_font_small" bgcolor="white"> <input id="chkEquipment" name="chkEquipment" value="72" type="checkbox +"> 4WD/AWD </td> # ====== this is the perl code snipit trying to access/extract the dat +a print "\n $node\n"; my $B = $tree->findvalue( $node ); $B = trim($B); print "\n $B \n"; # ============ this is what prints ================ /html/body/div/div[4]/div[2]/div[2]/form/div[3]/div/table[2]/tbody/t +r/td[3]/div/table/tbody/tr[1] 4WD/AWD # ============ this is my question ================ # # how do I access/extract the 'value="72"' data?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: scrape a webpage
by marto (Cardinal) on May 22, 2017 at 04:49 UTC | |
by Anonymous Monk on May 22, 2017 at 13:00 UTC | |
by marto (Cardinal) on May 22, 2017 at 13:29 UTC | |
by backyardbill (Initiate) on May 27, 2017 at 21:50 UTC | |
by Corion (Patriarch) on May 28, 2017 at 06:55 UTC | |
|
Re: scrape a webpage
by choroba (Cardinal) on May 22, 2017 at 07:45 UTC |