This is a balloon. Balloons are web pages that double as Ruby programs. To run this page: ruby -ropen-uri -e 'eval(open("http://balloon.hobix.com/hpricot").read)'

BE ALERT! Running this script could be dangerous. Be sure to review this page. You know: it's like anything else on the Internet.

hpricot, a balloon

by why

Try out hpricot. Asks you for a URL, then an XPath or CSS expression. The elements are then dumped to the screen.

For a working example:
URL: http://redhanded.hobix.com/index.html
Expression: span.entryPermalink a

  1. Connects to gem server at code.whytheluckystiff.net.

  2. Fetches the hpricot gem. 0.4

  3. Runs some Ruby.

    Click here to view the code.