in reply to Parsing HTML - once again

Code like this is usually a candidate for Code Catacombs, or Cool Uses for Perl. I appreciate your intention to share. But what your program actually does?

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Replies are listed 'Best First'.
Re^2: Parsing HTML - once again
by Krambambuli (Curate) on May 09, 2007 at 16:24 UTC
    Well, about what the program does.. hmm, I really hoped that showing the input, saying that the program parses it and showing the output would say much more then I'd be able to say in words :)

    So: I want to be able to extract links from HTML _and_ associate them with a reasonable link_text, even if the links are nested and the text that should pertain to a given link is interspersed with possible various other tags, even if the links are nested.

    In order to do so, I wanted to explore the modules that would allow this sort of operation as easiest as possible - in order to get a good start the next time I'd have to do something similar, so that I'd know better the strenghts and weaknesses of the available tools.

    HTML::Parser would be Way#1; having the same problem solved with alongside Way#2 (HTML::LinkExtractor), Way#3 (HTML::TokeParser), etc. would allow to get an easy overview/comparison on the available tools/modules.

      Well, about what the program does.. hmm, I really hoped that showing the input, saying that the program parses it and showing the output would say much more then I'd be able to say in words :)
      Well, it's too obvious I needed to ask. You want to share your effort, fine. But what peculiarity you expect people would find in the context of sharing? I'm not saying your effort is useless, not at all. Just that you asked in what part of PM your code should be posted.

      So if you want to seek advices on what you've done, SoPW is the place and that's what you did. And I did suggested two other places. Again, my question was meant to help you clarify to yourself where to post.


      Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!