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 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

Re: parsing html

2013-08-08 Thread Charles DeRykus
On Thu, Aug 8, 2013 at 10:18 AM, David Precious wrote: > On Thu, 8 Aug 2013 22:42:01 +0530 > Unknown User 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

Re: parsing html

2013-08-08 Thread timothy adigun
On 8 Aug 2013 18:19, "Unknown User" 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 has

Re: parsing html

2013-08-08 Thread Chankey Pathak
Have a look at HTML::PARSER. On Aug 8, 2013 10:50 PM, "Unknown User" 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 li

Re: parsing html

2013-08-08 Thread David Precious
On Thu, 8 Aug 2013 22:42:01 +0530 Unknown User 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 HTML::TableExtract, IM

parsing html

2013-08-08 Thread Unknown User
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 $html->{1}->{col1}=data11, $html->{1}->{col2}=data12 ... $html->{2}->{col1}=data21, $html-&

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]> wro

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

Parsing HTML file

2008-06-02 Thread Purohit, Bhargav
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. Thanks in advance Bhargav - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is inte

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,

parsing html question

2008-02-05 Thread isaac2004
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 want to learn regex better. my plan after i get the file is to pu

Re: pm for parsing HTML tags.

2007-10-09 Thread Jeff Pang
2007/10/10, Patrik Hasibuan <[EMAIL PROTECTED]>: > Dear my friends... > > Which pm can I use for parsing HTML tags? > Hi, Do you know CPAN.org?you can search it with any keywords you want at first. For your question,maybe HTML::Parser is suitable.see: http://search.cpan.org

pm for parsing HTML tags.

2007-10-09 Thread Patrik Hasibuan
Dear my friends... Which pm can I use for parsing HTML tags? Thanks in advance. -- Patrik Hasibuan <[EMAIL PROTECTED]> Junior Programmer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

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 t

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 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 ca

parsing HTML content

2007-08-30 Thread ladder49
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. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

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 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. WWW::Mechani

Parsing HTML (Table)

2007-07-16 Thread yitzle
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 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. WWW::Mechanize is the first obje

Re: parsing html data

2007-05-23 Thread xavier mas
g/~bricas/WWW-Wikipedia-1.92/lib/WWW/Wikipedia.pm). > > 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) Afr

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: > &

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

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 d

parsing html data

2007-05-22 Thread xavier mas
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 for that. Any suggestions?

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 >

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 >

RE: Parsing HTML

2005-08-29 Thread Charles K. Clarkson
Scott Taylor 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 here and hardly ever follow

Parsing HTML

2005-08-29 Thread Scott Taylor
Hi, I suck at regex, but getting better. :) 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 stuff. For example:

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> Santosh> UserNamesanhdkgfkdfg Sa

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.

Parsing HTML Data

2005-06-19 Thread santosh kumar
All, Pls help me the perl code reg ex for acheiving the following : ( Please note that we should not use any CPAN modules like HTML::Parser etc ) file.html UserNamesanhdkgfkdfg Passwordhh1 Required Output is : UserName Password Thanks In Advance santhosh

Parsing HTML

2005-05-12 Thread colinjohnstone
Gidday all, I am currently using HTML::Treebuilder to get the img tags and anchor tags from html source code. How can I return the content of a tag rather than the value of its attributes. In my html source I have a h1 tag with and id="pagetitle" I want to get the contents of this for my bread

RE: Parsing HTML Tables

2005-04-30 Thread Charles K. Clarkson
Charles K. Clarkson 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 Tables

2005-04-30 Thread Charles K. Clarkson
are a poor substitute for a good parser of HTML. : Do I need to some how start from and my match all the : way tofirst and use some backtracking or something? Perhaps. It is probably best to just scrap the regular expressions and use a module made for parsing HTML. Here's some code usin

Parsing HTML Tables

2005-04-30 Thread Sri Pen
my( @tableRows, @tableDefRows); $htmlContent = s/\n//g; # $htmlContent Contains the below sample 4321191 http://mail.yahoo.com/config/login?/pls/bug/webbug_util.show_bug_user? p_userid=YHIRA">YHIRA Bug 432119 - WHEN CREATING DATABASE 11 - Code Bug (Response/Resolution) http://mail.yahoo.com/conf

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-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. Looks good to me. Once you get used to the idea of event based parsing, storing context informatio

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 looking

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 can

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 existi

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 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 structure

parsing HTML

2004-07-21 Thread Andrew Gaffney
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 structure similar to: my $html = [ { tag => 'table',

Re: Parsing HTML for SPSS

2001-11-27 Thread Chris Ball
On Tue, 2001-11-27 at 22:22, Pete Emerson wrote: > So for example, if I have > Strongly Agree I'd use HTML::TokeParser, because it's lovely. Assuming you initialise a new TokeParser object to $p, try: my %option_choice; # for each , if there's a 'name=' token, initialise a hash of: # the name

Parsing HTML for SPSS

2001-11-27 Thread Pete Emerson
I am parsing an HTML page which has forms on it. I think maybe this belongs here instead of cgi-beginners? (Note, I'm parsing the form source, not the form results!) I am trying to extract the variable names as well as their labels so that I can write out an SPSS file which maps variable names t