You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819
  1. #!/usr/bin/env ruby
  2. $:.unshift 'lib'
  3. require 'logging'
  4. require 'cryptcheck'
  5. ::Logging.logger.root.appenders = ::Logging.appenders.stdout
  6. ::Logging.logger.root.level = :error
  7. hosts = []
  8. ::File.open('top-1m.csv', 'r') do |file|
  9. i = 0
  10. while line = file.gets
  11. hosts << ['Top 100 Alexa', line.strip.split(',')[1]]
  12. i += 1
  13. break if i == 100
  14. end
  15. end
  16. ::CryptCheck::Tls::Https.analyze hosts, 'output/alexa.html'