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