Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: examine cell's content in HTML::TableExtract

by marto (Cardinal)
on Mar 26, 2018 at 19:15 UTC ( [id://1211778]=note: print w/replies, xml ) Need Help??


in reply to examine cell's content in HTML::TableExtract

Do you have to use that module, or would you consider Mojo::DOM? I've got several posts (Super Search is your friend) using mojo to process the contents of tables, e.g. Download free Microsoft ebooks, fun with Mojolicious and CSS selectors. If you get stuck post the HTML for an example of the page/table you're working with.

  • Comment on Re: examine cell's content in HTML::TableExtract

Replies are listed 'Best First'.
Re^2: examine cell's content in HTML::TableExtract
by limner (Novice) on Mar 27, 2018 at 09:42 UTC
    Good morning and thanks to all

    i have no costrictions/obligations in using HTML::TableExtract module, i can use any
    module i want to have my result, but the thing that i need is to have, at the end, the
    possibility to manipulate every cell of the table.

    I have to say that i am not familyar with de/refecenfes of arrays (@$var).

    for example, if i try to print the result of my software, what i obtain is the
    printing of all table or the printing of all column without the possibility of
    printing only one cell (and manipulate it)
    I will start study Mojo::DOM, why do you think is the best solution?

    Limner

      "if i try to print the result of my software, what i obtain is the printing of all table or the printing of all column without the possibility of printing only one cell (and manipulate it)"

      In the link I gave you the code either prints or manipulates before using the value of stored within <td> tags. Did you look at this?

      "I will start study Mojo::DOM, why do you think is the best solution?"

      I didn't say it was the best solution, but it makes dealing with data like this trivial, even for complex selectors (the example previously given has details of a reasonable complex selector).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1211778]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (9)
As of 2024-04-23 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found