Sha256: 2525a1d77cf2f9708fb7d6ab1e0d5b54e4f632fd2f74855613bea083ff24beed

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

# filter to detect unknown internet domain
# Input is a list of URLs
# Output is an internet domain list that not currently tracked by the domain tracker

require "wmap"

k=Wmap::SiteTracker.new
f=File.open(ARGV[0],'r')
f.each do |line|
	url=line.chomp.strip.downcase
	if k.is_url?(url)
		puts k.url_2_site(url)
	else
		puts url
	end
end
f.close
k=nil 

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wmap-2.4.6 demos/site_format.rb
wmap-2.4.5 demos/site_format.rb
wmap-2.4.4 demos/site_format.rb