[ANN] hpricot 0.5 -- a fast, forgiving HTML reader

W

_why

Hi, here's Hpricot 0.5.

gem install hpricot --source http://code.whytheluckystiff.net

Hpricot reads HTML pages and works hard to fix them up and give you
everything you need to wind your way around them and hack them up!
Inspired by John Resig's JQuery and Tanaka Akira's HTree.

* Hpricot is standalone. It's dependant on no other libs, just
Ruby.
* Hpricot is fast, its parser is written in C with help of the
wonderful Ragel state machine compiler.
* However, Hpricot also works hard to fix up HTML and pays a small
penalty to get it right.
* How hard does Hpricot work? My rule is: if Firefox parses it,
Hpricot should too.

This release has a number of really nice features. The new
`to_original_html` method will try to preserve as much of the
original HTML as possible (including its mistakes) while still
merging in your changes. Also, you can test text nodes with syntax
like: `//a[text()='Click Me!']`.

Should appear on Rubyforge soon enough. Thank you to all the
ticketeers and patchistadores out there, especially Leslie Wu who's
been punching that commit button like she's doin the turtle trap!!

_why
 
B

bbiker

Hi, here's Hpricot 0.5.

gem install hpricot --sourcehttp://code.whytheluckystiff.net

Hpricot reads HTML pages and works hard to fix them up and give you
everything you need to wind your way around them and hack them up!
Inspired by John Resig's JQuery and Tanaka Akira's HTree.

* Hpricot is standalone. It's dependant on no other libs, just
Ruby.
* Hpricot is fast, its parser is written in C with help of the
wonderful Ragel state machine compiler.
* However, Hpricot also works hard to fix up HTML and pays a small
penalty to get it right.
* How hard does Hpricot work? My rule is: if Firefox parses it,
Hpricot should too.

This release has a number of really nice features. The new
`to_original_html` method will try to preserve as much of the
original HTML as possible (including its mistakes) while still
merging in your changes. Also, you can test text nodes with syntax
like: `//a[text()='Click Me!']`.

Should appear on Rubyforge soon enough. Thank you to all the
ticketeers and patchistadores out there, especially Leslie Wu who's
been punching that commit button like she's doin the turtle trap!!

_why

just downloaded hpricot ... no warnings when I run my script.

however, the Rdoc flag is still turned off .. documentation please!!!

C:\..\Owner>gem query -n hpricot -r -s http://
code.whytheluckystiff.net"

*** REMOTE GEMS ***
Need to update 2 gems from http://code.whytheluckystiff.net
...
complete

hpricot (0.5, 0.4.99, 0.4.92, 0.4.90, 0.4.86, 0.4.76, 0.4.59, 0.4.52,
0.4.47, 0.4.43,
0.4, 0.3.32, 0.3, 0.2, 0.1)
a swift, liberal HTML parser with a fantastic library

C:\..\Owner>gem install hpricot --source http://
code.whytheluckystiff.net
Select which gem to install for your platform (i386-mswin32)
1. hpricot 0.5 (ruby)
2. hpricot 0.5 (mswin32)
3. hpricot 0.5 (ruby)
4. hpricot 0.5 (mswin32)
5. Skip this gem
6. Cancel installation
Successfully installed hpricot-0.5-mswin32

C:\Documents and Settings\Owner>

RubyGems Documentation Index

hpricot 0.4 [rdoc] [www]
a swift, liberal HTML parser with a fantastic library


hpricot 0.4.99 [rdoc] [www]
a swift, liberal HTML parser with a fantastic library


hpricot 0.5 [rdoc] [www]
a swift, liberal HTML parser with a fantastic library

in all of the listing, only "www" has an active link.
 
R

Ron M

This script:
=================
%W[rubygems open-uri hpricot].each{|x| require x}
Hpricot.parse(open("http://www.opentable.com/rest_profile.aspx?rid=3292").read)
=================

crashes hpricot for me with this error:

=================
/usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5/lib/hpricot/parse.rb:44:in `scan': ran out of buffer space on element <input>, starting on line 23. (Hpricot::parseError)
from /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5/lib/hpricot/parse.rb:44:in `make'
from /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5/lib/hpricot/parse.rb:15:in `parse'
from (irb):3:in `irb_binding'
from /usr/local/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'
from /usr/local/lib/ruby/1.8/irb/workspace.rb:52
=================

It's probably because there's some insanely large attribute on one of
the HTML elements.

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
valuea="1NdTDwpyPeUAbUB/Ftf3t35AoTV70lS9q/vNFMaUZD8olfNTGk9a/1fHQs0EGURAlEkqxp0X2ykUX67pQMT03ztKa5biUF5creKARCP3Yp7eGAfb0t0jNYDcA7hbeAFrg4glsfSClQHBCgjVaCYhhv8nu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sV/HCPatM9L9hGqob5JxvsL/elivlrZND+tFseocH6Eg6FjeZP9q4QDY/s8aC45osv+RkBK7Ubo4VerSr69viWqj/zTkQRB36tQIM/KkyA2/+R8TkHMN0R4K/Q2I5PhjGncv+bbBPXGVURAtWmemjhvahmFo8zqJZZ+QlJ8ZOEfHALJB/qUNYEOfC0PWhPyF3pBmqT7YdDjLubRdUVmq/J9ekzdOd83i3fKs0sV0QTeh3+HV3kbpzi57c/+QSJRMbl/qfhI5bsmQoAGhJ9iSGZpQ1371cxnCIVonswBbFPzOU1Etsv9jF9B7g6mVAHSm9ojYsRpzV4BGjlmG+qdqZ2TBTItxAZPhH
nQjOoy1OvyweE4+LTWFF1xtk8wYYx2LlVhSJtb3zrlqndQgqcHpHXENZogAYsdKlZnoN3aKW4uK5mW6q16SFcj4UOBcQ9mjAY8uZHHktSnO9D9z/YECJ5OZHwFY1nrBTP0BMGAj32Q09srXTuxd3vyHdkpkfkdxUdlFXLWlv5HrCPPMMDqD5bbrz9SmpawPSnSWvyCulAZ2VS74r+ZGHawJ7+aHC0ja4BwDN3Ty+PS73dahlLVP9rdvdZA="
/>


============

Could hpricot die more gracefully and still parse the document
leaving only that element invalid when it sees such very large
attributes?
 
W

_why

/usr/local/lib/ruby/gems/1.8/gems/hpricot-0.5/lib/hpricot/parse.rb:44:in `scan': ran out of buffer space on element <input>, starting on line 23. (Hpricot::parseError)

Oh, you can increase the buffer size with: Hpricot.buffer_size = 262144

_why
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top