What is it?

RW Spider is an multithreading spider client written in Ruby. The library was designed to make easy the development of programs that spider the web.
RW Spider design comes from the direct experiences of the development of another PHP library that is currently used as the engine for an freeware SEO tool.

Features

How to install RW Spider?

This library is intended to be installed via the Gemcutter system.

$ gem install rwspider

You might need administrator privileges on your system to install it.

Code example

require 'rwspider'

# set the option values
opts = {
   :useragent => 'My user agent',
   :robot_name => 'my_spider_name',
   :scan_documents_limit => 100,
   :scan_domain_limit => nil,
   :scan_images => true,
   :scan_other_files => false,
   :follow_robotstxt_directive => true,
   :follow_HTTP_redirection => true,
   :timeout => 5
 }
# Run the Rwspider::start method to start the spider
 Rwspider.start('http://www.rwspider.com', opts) do |d|
    puts 'Current URL ' + d.url.normalize.to_s
 end

Requirements

Who wrote it?

RW Spider is written by Simone Rinzivillo.
RW Spider is free to use under the terms of the MIT License.

Resouces