Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- $: << '.'
- require 'rubygems'
- require 'anemone'
- module_start_time = Time.now
- Anemone.crawl("http://www.example.com/") do |anemone|
- anemone.on_every_page do |page|
- puts page.url
- end
- end
- module_end_time = Time.now
- puts "ran in " + (module_end_time - module_start_time).inspect + " seconds"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement