Sha256: c2d3c01d2668d3cc4e21f5a5acf643257f8fb3c0b8a29f4df7e93cd8fb8a229c

Contents?: true

Size: 307 Bytes

Versions: 34

Compression:

Stored size: 307 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), "..", "lib")

require 'rubygems'
require 'mechanize'

agent = WWW::Mechanize.new
stack = agent.get(ARGV[0]).links
while l = stack.pop
  next unless l.uri.host == agent.history.first.uri.host
  stack.push(*(agent.click(l).links)) unless agent.visited? l.href
end

Version data entries

34 entries across 34 versions & 6 rubygems

Version Path
eric-mechanize-0.9.3.20090623142847 examples/spider.rb
kitamomonga-mechanize-0.9.3.20090724215219 examples/spider.rb
knu-mechanize-0.9.3.20090623142847 examples/spider.rb
tenderlove-mechanize-0.9.3.20090617085936 examples/spider.rb
tenderlove-mechanize-0.9.3.20090623142847 examples/spider.rb
tenderlove-mechanize-0.9.3.20090911221705 examples/spider.rb
mechanize-ntlm-0.9.1 examples/spider.rb
mechanize-0.6.10 eg/spider.rb
mechanize-0.6.8 eg/spider.rb
mechanize-0.6.9 eg/spider.rb
mechanize-0.6.6 eg/spider.rb
mechanize-0.6.11 eg/spider.rb
mechanize-0.6.7 eg/spider.rb
mechanize-0.6.4 eg/spider.rb
mechanize-0.6.5 eg/spider.rb
mechanize-0.7.1 eg/spider.rb
mechanize-0.7.6 eg/spider.rb
mechanize-0.7.0 eg/spider.rb
mechanize-0.8.0 examples/spider.rb
mechanize-0.7.8 eg/spider.rb