您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

check_https_alexa.rb 472B

12345678910111213141516171819202122
  1. #!/usr/bin/env ruby
  2. $:.unshift File.expand_path File.join File.dirname(__FILE__), '../lib'
  3. require 'rubygems'
  4. require 'bundler/setup'
  5. require 'logging'
  6. require 'cryptcheck'
  7. GROUP_NAME = 'Top 100 Alexa'
  8. ::CryptCheck::Logger.level = :none
  9. hosts = []
  10. ::File.open('top-1m.csv', 'r') do |file|
  11. i = 0
  12. while line = file.gets
  13. hosts << [GROUP_NAME, line.strip.split(',')[1]]
  14. i += 1
  15. break if i == 100
  16. end
  17. end
  18. ::CryptCheck::Tls::Https.analyze hosts, 'output/alexa.html'