Re: parsing html

2013-08-08 Thread David Precious
On Thu, 8 Aug 2013 22:42:01 +0530 Unknown User knowsuperunkn...@gmail.com wrote: What would be the best module available for parsing html in your opinion? My intention is to parse html that contains a table of 5 columns and any number of rows For parsing HTML tables, you want

Re: parsing html

2013-08-08 Thread Chankey Pathak
Have a look at HTML::PARSER. On Aug 8, 2013 10:50 PM, Unknown User knowsuperunkn...@gmail.com wrote: What would be the best module available for parsing html in your opinion? My intention is to parse html that contains a table of 5 columns and any number of rows, and have a hash ref like

Re: parsing html

2013-08-08 Thread timothy adigun
On 8 Aug 2013 18:19, Unknown User knowsuperunkn...@gmail.com wrote: What would be the best module available for parsing html in your opinion? I would also say look at HTML::TreeBuilder My intention is to parse html that contains a table of 5 columns and any number of rows, and have a hash

Re: parsing html

2013-08-08 Thread Charles DeRykus
On Thu, Aug 8, 2013 at 10:18 AM, David Precious dav...@preshweb.co.ukwrote: On Thu, 8 Aug 2013 22:42:01 +0530 Unknown User knowsuperunkn...@gmail.com wrote: What would be the best module available for parsing html in your opinion? My intention is to parse html that contains a table of 5

Re: parsing html

2013-08-08 Thread Rob Dixon
On 08/08/2013 18:18, David Precious wrote: On Thu, 8 Aug 2013 22:42:01 +0530 Unknown User knowsuperunkn...@gmail.com wrote: What would be the best module available for parsing html in your opinion? My intention is to parse html that contains a table of 5 columns and any number of rows For

Re: Parsing HTML file

2008-06-04 Thread Pat Rice
Hi try html trees on cpan there is also html tables, but I haven't used it. Trees can take a while to understand but it seems to be pretty good. Pat On Mon, Jun 2, 2008 at 12:10 PM, Jeff Peng [EMAIL PROTECTED] wrote: On Mon, Jun 2, 2008 at 5:56 PM, Purohit, Bhargav [EMAIL PROTECTED] wrote:

Re: Parsing HTML file

2008-06-02 Thread Jeff Peng
On Mon, Jun 2, 2008 at 5:56 PM, Purohit, Bhargav [EMAIL PROTECTED] wrote: I have a HTML file and which contains many tables in it. Out of one of the table I want to extract Information of only few of the columns. Can anybody help me. Nobody can help unless you have tried some coding at

Re: parsing html question

2008-02-05 Thread Tom Phoenix
On Feb 5, 2008 10:36 AM, isaac2004 [EMAIL PROTECTED] wrote: hello, i am trying to parse an html document for links for output, my idea is to grab the URL from a form and send the URL to another file that does the actual parse process. i am aware that HTML:Parser has a built in for this, but i

Re: parsing HTML content

2007-08-31 Thread ladder49
On Aug 30, 9:37 pm, [EMAIL PROTECTED] (Daniel Kasak) wrote: On Thu, 2007-08-30 at 07:16 -0700, ladder49 wrote: Is there a way to dump the HTML code for a web page? I need to write a script which will collect and summarize content from intranet web pages. By dump, I mean to read it the

Re: parsing HTML content

2007-08-30 Thread Jeff Pang
2007/8/30, ladder49 [EMAIL PROTECTED]: Is there a way to dump the HTML code for a web page? I need to write a script which will collect and summarize content from intranet web pages. By dump, I mean to read it the same way you would read a file and parse its contents. Thanks. You can use

Re: parsing HTML content

2007-08-30 Thread Daniel Kasak
On Thu, 2007-08-30 at 07:16 -0700, ladder49 wrote: Is there a way to dump the HTML code for a web page? I need to write a script which will collect and summarize content from intranet web pages. By dump, I mean to read it the same way you would read a file and parse its contents. Thanks.

Re: Parsing HTML (Table)

2007-07-17 Thread Rob Dixon
yitzle wrote: I'm using WWW::Mechanize to retrieve a web page. I get to this line: my $page = $mech-response()-decoded_content(); The page got a table with values I wish to extract. What module is best suited to getting to that data? I'm hoping for a somewhat simple to use module.

Re: parsing html data

2007-05-23 Thread xavier mas
). You can manu more dictionaries in the cpan. Yaron Kahanovitch - Original Message - From: xavier mas [EMAIL PROTECTED] To: beginners@perl.org Sent: 22:14:07 (GMT+0200) Africa/Harare יום שלישי 22 מאי 2007 Subject: Re: parsing html data El Martes 22 Mayo 2007 22:00, David Moreno

Re: parsing html data

2007-05-22 Thread David Moreno Garza
xavier mas wrote: dear all, I'm trying to make a consult to a online dictionary from an html document, the result of the consult has to be output in a text field of the same html document. I understand this can be done using (perl) cgi scripts but am not sure which module do I need

Re: parsing html data

2007-05-22 Thread xavier mas
El Martes 22 Mayo 2007 22:00, David Moreno Garza escribió: xavier mas wrote: dear all, I'm trying to make a consult to a online dictionary from an html document, the result of the consult has to be output in a text field of the same html document. I understand this can be done using

Re: parsing html data

2007-05-22 Thread yaron
Kahanovitch - Original Message - From: xavier mas [EMAIL PROTECTED] To: beginners@perl.org Sent: 22:14:07 (GMT+0200) Africa/Harare יום שלישי 22 מאי 2007 Subject: Re: parsing html data El Martes 22 Mayo 2007 22:00, David Moreno Garza escribió: xavier mas wrote: dear all, I'm trying to make

Re: Parsing HTML

2005-09-01 Thread Scott Taylor
Jenda Krynicky said: From: Scott Taylor [EMAIL PROTECTED] I'm probably reinventing the wheel here, but I tried to get along with HTML::Parser and just couldn't get it to do anything. To confusing, I think. I simply want to get a list or real words from an HTML string, minus all the HTML

Re: Parsing HTML

2005-09-01 Thread Scott Taylor
Jenda Krynicky said: From: Scott Taylor [EMAIL PROTECTED] I'm probably reinventing the wheel here, but I tried to get along with HTML::Parser and just couldn't get it to do anything. To confusing, I think. I simply want to get a list or real words from an HTML string, minus all the HTML

RE: Parsing HTML

2005-08-29 Thread Charles K. Clarkson
Scott Taylor mailto:[EMAIL PROTECTED] wrote: : Is there a better, maybe more eligant, way to do this? I don't : mind to use HTML::Parser if I could only figure out how. use HTML::TokeParser; my $html = q( This is a line of HTML:people write strange things herebr and hardly ever follow

Re: Parsing HTML Data

2005-06-19 Thread Chris Devers
On Sun, 19 Jun 2005, santosh kumar wrote: [Please] help me [with] the perl code reg ex for acheiving the following : ( Please note that we should not use any CPAN modules like HTML::Parser etc ) Please show what you've tried so far. Please explain why you can't use a CPAN module for this.

Re: Parsing HTML Data

2005-06-19 Thread Randal L. Schwartz
Santosh == Santosh Kumar [EMAIL PROTECTED] writes: Santosh All, Santosh Pls help me the perl code reg ex for acheiving the following : Santosh ( Please note that we should not use any CPAN modules like HTML::Parser etc ) Santosh file.html Santosh html Santosh UserNameinput...santdhdkgfkdfg/td

RE: Parsing HTML Tables

2005-04-30 Thread Charles K. Clarkson
Sri Pen mailto:[EMAIL PROTECTED] wrote: : and second @tableDefRows match the data between : TD*..4321191../TDIt matches all the data between : TABLETOBDYTR*.../TR/TBODY/TABLE something is wrong : here. You are getting this because perl regular expressions are greedy by default and because

RE: Parsing HTML Tables

2005-04-30 Thread Charles K. Clarkson
Charles K. Clarkson mailto:[EMAIL PROTECTED] wrote: Oopsie! : my @rows; : while ( $parser-get_tag( 'tr' ) ) { : : # check error number : next unless $parser-get_trimmed_text( '/td' ) eq ''; next unless $parser-get_trimmed_text( '/td' ) eq '4321191'; : : # get next

Re: parsing HTML

2004-07-22 Thread Randy W. Sims
Andrew Gaffney wrote: Here is my current working code. Please take a look at it and see if there are any obvious (or not so obvious) problems. I thought this would end up being far more difficult. snip code Looks good to me. Once you get used to the idea of event based parsing, storing context

tracking where I am in a tree structure (was: Re: parsing HTML)

2004-07-22 Thread Andrew Gaffney
Andrew Gaffney wrote: Andrew Gaffney wrote: Randy W. Sims wrote: On 7/21/2004 11:24 PM, Andrew Gaffney wrote: Randy W. Sims wrote: On 7/21/2004 10:42 PM, Andrew Gaffney wrote: I am trying to build a HTML editor for use with my HTML::Mason site. I intend for it to support nested tables, SPANs, and

Re: parsing HTML

2004-07-21 Thread Randy W. Sims
On 7/21/2004 10:42 PM, Andrew Gaffney wrote: I am trying to build a HTML editor for use with my HTML::Mason site. I intend for it to support nested tables, SPANs, and anchors. I am looking for a module that can help me parse existing HTML (custom or generated by my scripts) into a tree

Re: parsing HTML

2004-07-21 Thread Andrew Gaffney
Randy W. Sims wrote: On 7/21/2004 10:42 PM, Andrew Gaffney wrote: I am trying to build a HTML editor for use with my HTML::Mason site. I intend for it to support nested tables, SPANs, and anchors. I am looking for a module that can help me parse existing HTML (custom or generated by my scripts)

Re: parsing HTML

2004-07-21 Thread Randy W. Sims
On 7/21/2004 11:24 PM, Andrew Gaffney wrote: Randy W. Sims wrote: On 7/21/2004 10:42 PM, Andrew Gaffney wrote: I am trying to build a HTML editor for use with my HTML::Mason site. I intend for it to support nested tables, SPANs, and anchors. I am looking for a module that can help me parse

Re: parsing HTML

2004-07-21 Thread Andrew Gaffney
Randy W. Sims wrote: On 7/21/2004 11:24 PM, Andrew Gaffney wrote: Randy W. Sims wrote: On 7/21/2004 10:42 PM, Andrew Gaffney wrote: I am trying to build a HTML editor for use with my HTML::Mason site. I intend for it to support nested tables, SPANs, and anchors. I am looking for a module that

Re: parsing HTML

2004-07-21 Thread Andrew Gaffney
Andrew Gaffney wrote: Randy W. Sims wrote: On 7/21/2004 11:24 PM, Andrew Gaffney wrote: Randy W. Sims wrote: On 7/21/2004 10:42 PM, Andrew Gaffney wrote: I am trying to build a HTML editor for use with my HTML::Mason site. I intend for it to support nested tables, SPANs, and anchors. I am

Re: Parsing HTML Form Data in Perl

2002-06-11 Thread Tor Hildrum
I have written a e-mail script but cannot get the From part of the sendmail protical to recognize e-mails with a period in the user name like [EMAIL PROTECTED] It causes errors. I know if I send brook/.hurd@gm/.com it will work. /. or \.? I cannot locate the code required to parse