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.
19 lines
384 B
19 lines
384 B
#!/usr/bin/env ruby
|
|
require 'yaml'
|
|
$:.unshift 'lib'
|
|
require 'sslcheck'
|
|
|
|
Logging.logger.root.appenders = Logging.appenders.stdout
|
|
Logging.logger.root.level = :error
|
|
|
|
hosts = []
|
|
File.open('top-1m.csv', 'r') do |file|
|
|
i = 0
|
|
while line = file.gets
|
|
hosts << ['Top 100 Alexa', line.strip.split(',')[1]]
|
|
i += 1
|
|
break if i == 100
|
|
end
|
|
end
|
|
|
|
SSLCheck.analyze hosts, 'output/alexa.html'
|
|
|