lib/wmap/google_search_scraper.rb
# Perform a Google web interface keyword search, return as a Nokogiri::HTML:Document object for the search result page 
Perform a Google web interface keyword search, return as a Nokogiri::HTML:Document object for the search result page
Perform a Google web interface keyword search return as a Nokogiri :: HTML : Document object for the search result page
def google_search (locator,keyword)
		begin
			puts "Perform the keyword search on the Google web engine for: #{keyword}" if @verbose
			link_search = locator + "search?q=" + URI::encode(keyword)
			doc = Nokogiri::HTML(open(link_search))
			return doc
		rescue Exception => ee
			puts "Exception on method google_search at Google engine location #{link_search} for the keyword #{keyword} : #{ee}" if @verbose
		end
	end
def google_search ( locator , keyword ) begin puts "Perform the keyword search on the Google web engine for: #{keyword}" if @verbose link_search = locator + "search?q=" + URI :: encode ( keyword ) doc = Nokogiri :: HTML ( open ( link_search ) ) return doc rescue Exception => ee puts "Exception on method google_search at Google engine location #{link_search} for the keyword #{keyword} : #{ee}" if @verbose end end
Perform a Google web interface keyword search, return as a Nokogiri::HTML:Document object for the search result page
Perform a Google web interface keyword search return as a Nokogiri :: HTML : Document object for the search result page
locator
<not_specific>
keyword
<not_specific>