joshuabates / wiretapper

Capture, store & replay requests from Net::HTTP for writing scraper tests

This URL has Read+Write access

name age message
file MIT-LICENSE Loading commit data...
file README
file Rakefile
file init.rb
file install.rb
directory lib/
directory tasks/
directory test/
file uninstall.rb
README
Wiretapper
=============

Just some code I'm playing around with for testing screen scrapers.
Inspired by http://github.com/somebox/eavesdrop/tree/master


Example
=======

@datastore = SQLiteDatastore.new('db_name')
@wiretapper = NetHTTPWiretapper.new(:data_store => @datastore)

@wiretapper.snoop do
  WWW::Mechanize.new.get('http://www.google.com')
end


Copyright (c) 2008 [Joshua Bates], released under the MIT license