goog 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/goog +2 -1
- data/lib/goog.rb +1 -1
- metadata +1 -1
data/bin/goog
CHANGED
@@ -54,7 +54,8 @@ end
|
|
54
54
|
doc = Nokogiri::HTML resp, nil, 'iso-8859-1'
|
55
55
|
doc.search('ol li.g').each_with_index {|li, index|
|
56
56
|
next unless li.at('h3 a')
|
57
|
-
|
57
|
+
href = li.at('h3 a')['href']
|
58
|
+
link = href[/^\/url\?q=([^&]+)/, 1] || href
|
58
59
|
if link !~ /^http:/
|
59
60
|
link = "http://google.com#{link}"
|
60
61
|
end
|
data/lib/goog.rb
CHANGED