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

Version Path
wmap-2.8.4 demos/filter_timestamp.rb
wmap-2.8.3 demos/filter_timestamp.rb
wmap-2.8.2 demos/filter_timestamp.rb
wmap-2.8.1 demos/filter_timestamp.rb
wmap-2.7.9 demos/filter_timestamp.rb
wmap-2.7.7 demos/filter_timestamp.rb
wmap-2.7.6 demos/filter_timestamp.rb
wmap-2.7.2 demos/filter_timestamp.rb
wmap-2.7.1 demos/filter_timestamp.rb
wmap-2.7.0 demos/filter_timestamp.rb
wmap-2.6.9 demos/filter_timestamp.rb
wmap-2.6.8 demos/filter_timestamp.rb
wmap-2.6.7 demos/filter_timestamp.rb
wmap-2.6.6 demos/filter_timestamp.rb
wmap-2.6.5 demos/filter_timestamp.rb
wmap-2.6.4 demos/filter_timestamp.rb
wmap-2.6.3 demos/filter_timestamp.rb
wmap-2.6.2 demos/filter_timestamp.rb
wmap-2.6.1 demos/filter_timestamp.rb
wmap-2.6.0 demos/filter_timestamp.rb