Sha256: b08398a4a72c1a8de38eee5dbca085afbc24fea56014344819752f7c75ca8436
Contents?: true
Size: 462 Bytes
Versions: 34
Compression:
Stored size: 462 Bytes
Contents
# print out the timestamp for the sites # Usage: ruby filter_timestamp.rb [file_sites] require "wmap" tracker = Wmap::SiteTracker.instance puts "Site | Timestamp" f_urls = File.open(ARGV[0], 'r') f_urls.each do |line| url=line.chomp if tracker.is_url?(url) site=tracker.url_2_site(url) if tracker.site_known?(site) ts=tracker.known_sites[site]['timestamp'] puts "#{site}|#{ts}" else puts site end else puts url end end f_urls.close
Version data entries
34 entries across 34 versions & 1 rubygems