googling 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/googling/search.rb +1 -1
- data/lib/googling/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 865b704187fd49dbd8c6c96409e63b958b4d44ee
|
4
|
+
data.tar.gz: 7d54e670ec78717e3dbec8eb19f0a203ebe646ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76b3113b32d9e718f5a606c62b4d6d3c1d71330775ff7537b471ff2e174f7081069604dcc999da49bda9aefb50e8cb1d0af73d2ac16db239a1031b7eecfaa0b0
|
7
|
+
data.tar.gz: 56cf8b7735df92dfccb9c99d8f87d1f66f70a108175eca092ab5ab04015f9e75035184f14b4a3c43f919dd98f8f1f80c13a26c34971c7069d5d12c70c52aafb9
|
data/lib/googling/search.rb
CHANGED
@@ -34,7 +34,7 @@ module Googling
|
|
34
34
|
nodes = nodes.select { |r| r.css('table').empty? }
|
35
35
|
nodes.map do |r|
|
36
36
|
title = r.css('h3 a').text
|
37
|
-
link = r.css('h3 a').
|
37
|
+
link = r.css('h3 a').first['href'].to_s.sub!("/url?q=","")
|
38
38
|
description = r.css('div.s span.st').text
|
39
39
|
Result.new(title: title, link: link, description: description)
|
40
40
|
end
|
data/lib/googling/version.rb
CHANGED