count.rb 183 B

12345678
  1. counts = Hash.new(0)
  2. 100.times do
  3. output = `curl -s canary.com | grep 'Canary' | awk '{print $2}' | awk -F"<" '{print $1}'`
  4. counts[output.strip.split.last] += 1
  5. end
  6. puts counts