gss 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +15 -2
- data/gss.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTYwMzFmNWU5OTRhMjM4YjdmNDBlZjg4ZWI2NGZhMzk1OTJhNjIyNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODEyNGUzODJhZDgxMmI3YjI4MmEzMGZhODA0ZmQwNTFmNmQxYTNiZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWE4YTA0MTVlMWQ4NzJjOWJmNzc2NTE5NmZhMTJiODdkNDM5OWY5NDhjYjk2
|
10
|
+
YzVmMDg1NGM3ODM2ZGU5NDMzZDdjODdiY2MzMDI5NGE4ZDUyYTJmNjhlODQ1
|
11
|
+
NmJhNTc3YTM1NjBjOTgxNDlmNjliOTJlYjJmMjZmYjRmZmZjYTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjdmMTRiNGMxNmNhMDNiZTY3OTExMWU4MTRhMGY3ODI5YmU2YTExNGZiNzJl
|
14
|
+
MzQyOTU2YzYyZDExZTA4ZGE4MzMwNTJiNTExYmRhMWZmZjVmYzU5OGI5ZTQ4
|
15
|
+
MDgyNWNmMTdlM2QzNTViNDE4ZjZlZTYzM2VlMzkwMjMzNmFkMDY=
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Gss
|
2
2
|
|
3
|
-
|
3
|
+
This module is small but powerful if you like to webscrape. Give Gss a site and a search query and it will return the top results for your search.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,20 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
Here is the one line that you would want it for.
|
22
|
+
(top_result, top_results) = Gss.return_results("imdb.com", "Amazing Spiderman")
|
23
|
+
|
24
|
+
top_result is a Hash object has holds three values:
|
25
|
+
name - The name of the link.
|
26
|
+
url - The url to go to that site.
|
27
|
+
description - The short summary about what the link is about.
|
28
|
+
|
29
|
+
top_results is an array of Hash objects containing the top ten results
|
30
|
+
The hash objects are the same as top_result.
|
31
|
+
In fact top_results[0] would be equal top_result.
|
32
|
+
To get second link would be top_results[1]
|
33
|
+
|
34
|
+
That is all that there is to it, but it is very helpful.
|
22
35
|
|
23
36
|
## Contributing
|
24
37
|
|
data/gss.gemspec
CHANGED
@@ -5,7 +5,7 @@ require 'gss/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "gss"
|
8
|
-
spec.version = "0.0.
|
8
|
+
spec.version = "0.0.6"
|
9
9
|
spec.authors = ["rfitzger"]
|
10
10
|
spec.email = ["ritchiefitz1@gmail.com"]
|
11
11
|
spec.summary = %q{Grabs top google results from a given site with a given string.}
|