Hello, I have tried to understand Mojo but cannot find a way to collect
certain elements and would greatly appreciate any assistance you all may
offer.
I have pages that contain the following html (there can be multiple stores
on one page):
<tr id="rrlow_0" sm="0" ph="98009"><th class="p_low">
<a href="/update_form.aspx?pid=753745357" title="Update this price"
class="p_price" id="p_753745357"><div class="sp_p"><div class="p3"></div><div
class="pd"></div><div class="p5"></div><div class="p4"></div></div></a>
<a href="/update_form.aspx?pid=753745357"
class="p_update">update</a></th><td class="lf" style="width: 205px;"><dl
class="address"><dt><a
href="/Gas_Express_Gas_Stations/Toledo_-_East/98009/index.aspx">Gas
Express</a></dt><dd>1410 Starr Ave & White St</dd><dd></dd></dl></td><td
class="fts"> <div style="margin: 2px 0px 0px;"><a
href="/redirect.aspx?mapit_id=753745357&ft=A" class="p_flag p_map"
title="Click here to view the station on the map"></a></div></td><td><a
href="./Toledo_-_East/index.aspx" class="p_area">Toledo -
East</a></td><td><div><a href="/Profile.aspx?member=Dawngasexpress"
class="mem">Dawngasexpress</a></div><div class="tm" title="Mon 11:01 PM">10
hours ago</div> </td></tr>
What I need to be able to do is parse pages like this and produce the
following:
Company: Gas Express
Address: 1410 Starr Ave & White St
Price: 354 (Taken from this line: <div class="p3"></div><div class="pd"></
div><div class="p5"></div><div class="p4">)
Time: Mon 11:01 PM
Is this possible with Mojo::Dom? If possible, could you give me an example?
I would really appreciate any help you may provide!!!!
-Dave
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.