On 08/03/2006 01:27 PM, Wesley Bresson wrote:
I'm pretty new to Perl, my past experience has been in modifying other
peoples code in order to do what I want it to do but now I'm trying to write
my own to do a specific task that I can't find code for and am having
issues. I am trying to retrieve data from a webpage, say
http://www.apmex.com/shop/buy/Silver_American_Eagles.asp?orderid=0 for
example, the price of a 2006 1oz Silver American Eagle in the 20-99 price
break quantity. Should I use Regex to do that or would I be better off with
HTML::Parser ? I've attemped Regex since I seem to understand it better but
haven't had much success it getting it to pull the right price. HTML::Parser I understand even less than Regex but I've read that its a more reliable way of pulling webpage data ? I can't seem to find "easy" to understand documentation on it though so I'm even farther away from getting it to work then Regex, Any advice ?


Parsing HTML is not "easy." Correctly parsing HTML using regexes is impossible. HTML::Parser is probably your best chance.

If you need a tutorial, search for one.

http://www.dogpile.com/info.dogpl/search/web/html+parser+tutorial


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to