Index of /ports_www/rubygem-rubyfulsoup
Name Last modified Size
Parent Directory -
Makefile 07-Jun-2010 13:17 609
distinfo 28-May-2011 14:16 153
pkg-descr 18-Feb-2007 15:45 752
pkg-plist 03-Apr-2008 13:14 4.6K
Rubyful Soup is a Ruby port of the hit Python HTML/XML parser Beautiful Soup.
It's designed to be a useful quick-and-dirty parser for screen-scraping,
along the same lines as its parent:
1. Rubyful Soup won't choke if you give it bad markup. It yields a parse tree
that makes approximately as much sense as your original document.
This is usually good enough to collect the data you need and then run away.
2. Rubyful Soup provides a few simple methods and Ruby-like idioms for
navigating and searching a parse tree: a toolkit for dissecting a document
and extracting what you need. You don't have to create a custom parser for
each application. It's more flexible and easier to learn than XPath.
WWW: http://www.crummy.com/software/BeautifulSoup/