lib/wmap/google_search_scraper.rb
# Main worker method to simulate extensive google keyword searches on over 100+ countries and regions. The search will extract known web services related to the keyword by the Google Inc.
Main worker method to simulate extensive google keyword searches on over 100+ countries and regions. The search will extract known web services related to the keyword by the Google Inc.
Main worker method to simulate extensive google keyword searches on over 100 + countries and regions . The search will extract known web services related to the keyword by the Google Inc .
def google_worker (keyword)
		begin
			puts "Start the Google worker for: #{keyword}" if @verbose
			links=Array.new
			keyword=keyword.strip
			google_locators = file_2_list(File_locator)
			google_locators.map do |locator|
				doc=google_search(locator,keyword) unless keyword.nil?
				links+=extract_links(doc) unless doc.nil? 
			end
			return links.uniq.sort-["",nil]
		rescue Exception => ee
			puts "Exception on the method google_worker for #{keyword}: #{ee}" if @verbose
			return nil
		end	
	end
def google_worker ( keyword ) begin puts "Start the Google worker for: #{keyword}" if @verbose links = Array . new keyword = keyword . strip google_locators = file_2_list ( File_locator ) google_locators . map do | locator | doc = google_search ( locator , keyword ) unless keyword . nil? links += extract_links ( doc ) unless doc . nil? end return links . uniq . sort - [ "" , nil ] rescue Exception => ee puts "Exception on the method google_worker for #{keyword}: #{ee}" if @verbose return nil end end
Main worker method to simulate extensive google keyword searches on over 100+ countries and regions.
Main worker method to simulate extensive google keyword searches on over 100 + countries and regions .
keyword
<not_specific>