# Documentation for HTMLParser

**URL:** <https://www.ruby-forum.com/t/documentation-for-htmlparser/92859>\
**Category:** Ruby\
**Created:** [April 25, 2007, 5:35am UTC](https://www.ruby-forum.com/t/documentation-for-htmlparser/92859 "2007-04-25T05:35:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/3bc359/32.png) [@eliben](https://www.ruby-forum.com/u/eliben)\
**Post date:** [April 25, 2007, 5:35am UTC](https://www.ruby-forum.com/t/documentation-for-htmlparser/92859/1 "2007-04-25T05:35:31Z")

</div>

Hi,

I have a few questions about parsing HTML:

1. The default docs (rdoc) for HTMLParser (the one that comes with the  
Win32 binary distribution) in Ruby are very poor. Where can I find  
some good documentation of the module, or better yet a tutorial /  
examples ?

2. Another question: is HTMLParser built after Perl’s HTML::Parser ?

3. Can someone suggest which is the best parser to tokenize and build  
a tree of the HTML document ? Hpricot looks like a nice parser and is  
well documented, but I’m not sure it’s suitable.

Thanks in advance
