Xanda's Blog !~!

Installing scRUBYt! on Ubuntu Linux

Mar
10

scRUBYt! is a simple but powerful web scraping toolkit written in Ruby. It’s purpose is to free you from the drudgery of web page crawling, looking up HTML tags, attributes, XPaths, form names and other typical low-level web scraping stuff by figuring these out from your examples copy’n’pasted from the Web page or straight from Firebug.

Here are some tips on how to make scRUBYt! works on Ubuntu Linux :

Update your packages list

sudo apt-get update

Now install build-essential and dependencies

sudo apt-get install build-essential ruby-full rubygems libxml-ruby libxslt1.1 libxslt1-dev libxslt-ruby libxml2 libxml2-dev

By using gem, install scRUBYt!’s dependencies

sudo gem install rack rubyforge rake hoe sinatra nokogiri user-choices xml-simple s4t-utils builder commonwatir activesupport hpricot mechanize firewatir

Finally, install scrubyt

sudo gem install scrubyt

Enjoy! 😀