google-csene 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/console +1 -1
- data/lib/google/csene/client.rb +12 -0
- data/lib/google/csene/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: 7023e9190d511fafa478c9f02a746d1efd855773
|
4
|
+
data.tar.gz: adb04bff44d1027c1977f92feefcc2201909d334
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1144c7345837d5e36aaa0c92489f8539f79cccef38300a7a803974ca104d0c1780370c41a3743d426b164bf1b874d09f31e06823022862f30b41b9eacbc1cc40
|
7
|
+
data.tar.gz: 55648348fc8157027413f9ad8e2af6dd1781fbaa11021fb049bbf41c01eb0c8b4aa099a0251da6fdd41bad82c2f50bade4bf7ac03ff60c0a2b073feb2aaaa305
|
data/bin/console
CHANGED
data/lib/google/csene/client.rb
CHANGED
@@ -61,6 +61,18 @@ module Google
|
|
61
61
|
result.data.search_information.total_results
|
62
62
|
end
|
63
63
|
|
64
|
+
# seems working for the moment (maybe Google has stopped providing this?)
|
65
|
+
def backlink_count(site)
|
66
|
+
result = client.execute(
|
67
|
+
service.cse.list,
|
68
|
+
default_options.merge(
|
69
|
+
'q' => "link:#{site}"
|
70
|
+
)
|
71
|
+
)
|
72
|
+
|
73
|
+
result.data.search_information.total_results
|
74
|
+
end
|
75
|
+
|
64
76
|
private
|
65
77
|
|
66
78
|
def default_options
|
data/lib/google/csene/version.rb
CHANGED