Sha256: b1264bdb339ad4a8af6cca4f5cf37f8a2fad8ad88bdd91df36d45ef34f4ed86b

Contents?: true

Size: 856 Bytes

Versions: 32

Compression:

Stored size: 856 Bytes

Contents

#!/usr/bin/env ruby
# Using the Google scraper module to query Google engines on different geographic locations, then work through the google results to update site store
require 'wmap'

def print_usage
	puts "Program to discovery website assets from Google search engines. Usage: googleBot"
end

puts Wmap.banner
print_usage
Log_dir=File.dirname(__FILE__)+'/../logs/'
Wmap.wlog("Execute the command: googleBot","googleBot",Log_dir+"wmap.log")

abort "Incorrect program argument - no argument needed! Proper Usage: googleBot " unless ARGV.length==0

puts "Start the Google search scraper. This may take a while, please be patient ..."
dis=Wmap::GoogleSearchScraper.new(:verbose=>false)
dis.workers
sites=dis.discovered_sites_from_scraper.keys
puts "Update Google search results into the data repository:"
k=Wmap::SiteTracker.instance
k.adds(sites)
k.save!

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
wmap-2.8.6 bin/googleBot
wmap-2.8.5 bin/googleBot
wmap-2.8.4 bin/googleBot
wmap-2.8.3 bin/googleBot
wmap-2.8.2 bin/googleBot
wmap-2.8.1 bin/googleBot
wmap-2.7.9 bin/googleBot
wmap-2.7.7 bin/googleBot
wmap-2.7.6 bin/googleBot
wmap-2.7.2 bin/googleBot
wmap-2.7.1 bin/googleBot
wmap-2.7.0 bin/googleBot
wmap-2.6.9 bin/googleBot
wmap-2.6.8 bin/googleBot
wmap-2.6.7 bin/googleBot
wmap-2.6.6 bin/googleBot
wmap-2.6.5 bin/googleBot
wmap-2.6.4 bin/googleBot
wmap-2.6.3 bin/googleBot
wmap-2.6.2 bin/googleBot