Advertisement
Guest User

Untitled

a guest
Nov 28th, 2011
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. $: << '.'
  4. require 'rubygems'
  5. require 'anemone'
  6.  
  7. module_start_time = Time.now
  8.  
  9. Anemone.crawl("http://www.example.com/") do |anemone|
  10. anemone.on_every_page do |page|
  11. puts page.url
  12. end
  13. end
  14.  
  15. module_end_time = Time.now
  16.  
  17. puts "ran in " + (module_end_time - module_start_time).inspect + " seconds"
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement