require 'anemone' require 'load_impact' urls = [] if ARGV[0] == 'crawl' Anemone.crawl(ARGV.last) do |anemone| anemone.on_every_page do |page| urls.push page.url.to_s end end urls.select! do |url| begin open url rescue OpenURI::HTTPError nil end end else urls = ARGV end puts LoadImpact.scenario_for urls