lib/gsearch-parser.rb in gsearch-parser-0.1.1 vs lib/gsearch-parser.rb in gsearch-parser-0.1.2
- old
+ new
@@ -31,10 +31,10 @@
# Iterate over each Google result list element and extract data
searchPage.css('li.g').each do |result|
title = result.css('h3').first.content
content = result.css('span.st').first
- uri = result.css('cite')
+ uri = result.css('cite').first
@results << Result.new(title, content, uri)
end
end
# Iterator over results