Sha256: fc93faeb5af9b28b63a09dc4564741898b63977214a009014b1bcd2188f921db

Contents?: true

Size: 406 Bytes

Versions: 3

Compression:

Stored size: 406 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::DomainTracker.new
#k.verbose=true
f=File.open(ARGV[0],'r')
f.each do |line|
	url=line.chomp.strip.downcase
	host=k.url_2_host(url)
	root=k.get_domain_root(host)
	unless k.domain_known?(root)
		puts root
	end
end
f.close
k=nil 

Version data entries

3 entries across 3 versions & 1 rubygems

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