Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

html parser generator with GUI?

by dannoura (Pilgrim)
on Mar 28, 2008 at 12:32 UTC ( #676960=perlquestion: print w/replies, xml ) Need Help??
dannoura has asked for the wisdom of the Perl Monks concerning the following question:


Recently I've been writing lots of HTML parsers. First with perl (ok), then with java (not so ok). Writing parsers is fairly boring so I thought I could maybe ask one of the non-technical people in my company to do this with a parser generator. I know there are plenty of them around, but they all use their own grammar, which is not very suitable for non-technical people. Does anyone know of a GUI application where you can mark elements in a web page and it will create some sort of extraction grammar or even code to extract them?


Replies are listed 'Best First'.
Re: html parser generator with GUI?
by Fletch (Chancellor) on Mar 28, 2008 at 12:46 UTC

    That's actually kind of an interesting idea. I don't know of anything offhand but you probably could repurpose and/or reuse one of the Firefox web dev packages like Firebug or XPather. You'd use those to find the xpath that describes the parts you're interested in and then plug that into something that pulls the relevant chunks out of the tree.

    At the least something like that might let you pawn off the tedious "dig through the page's source and figure out what you want" stage off on a non-technical person and you just tweak a standard skeleton as necessary.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

Re: html parser generator with GUI?
by zentara (Archbishop) on Mar 28, 2008 at 17:16 UTC
Re: html parser generator with GUI?
by Anonymous Monk on Mar 28, 2008 at 12:46 UTC
Re: html parser generator with GUI?
by Anonymous Monk on Jul 18, 2008 at 13:49 UTC
    You could try Visual Web Task and Happy Harvester - both of which allow you to extract text from HTML using a simple GUI. Happy Harvester is better if you want to parse lots of sites quickly, but requires you to enter start and end tags for each class of data you want to extract (e.g. and article title or link) Visual Web Task is entirely code-free, but doesn't have so many options for parsing multiple sites. good luck, Harry

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://676960]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2018-05-26 01:26 GMT
Find Nodes?
    Voting Booth?