gsearch-parser 0.3.0 → 0.3.1

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.
Files changed (4) hide show
  1. data/README.md +32 -29
  2. data/VERSION +1 -1
  3. data/gsearch-parser.gemspec +1 -1
  4. metadata +1 -1
data/README.md CHANGED
@@ -1,6 +1,5 @@
1
1
  # GSearchParser
2
2
 
3
- TODO: Write a gem description
4
3
  GSearchParser is a lightweight framework for making Google search queries and parsing the resulting pages. More parsed results can be requested by simply calling the 'nextResults' method.
5
4
 
6
5
  ## Installation
@@ -19,34 +18,38 @@ Or install it yourself as:
19
18
 
20
19
  ## Usage
21
20
 
22
- require 'gsearch-parser'
23
-
24
- # Create a new Google web search from a query string
25
- webSearch = GSearchParser.webSearch('what')
26
-
27
- # Iterate over results
28
- webSearch.each do |result|
29
- puts "\t" + result.title
30
- puts "\t" + result.content
31
- puts "\t" + result.uri
32
- puts "\n"
33
- end
34
-
35
- # Fetch the next set of results, and iterate over them
36
- webSearch.nextResults.each do |result|
37
- puts "\t" + result.title
38
- puts "\t" + result.content
39
- puts "\t" + result.uri
40
- puts "\n"
41
- end
42
-
43
- # Iterate over all the results, including the ones from calls to .nextResults
44
- webSearch.each do |result|
45
- puts "\t" + result.title
46
- puts "\t" + result.content
47
- puts "\t" + result.uri
48
- puts "\n"
49
- end
21
+ Create a new Google web search from a query string
22
+
23
+ require 'gsearch-parser'
24
+
25
+ webSearch = GSearchParser.webSearch('what')
26
+
27
+ Iterate over results
28
+
29
+ webSearch.each do |result|
30
+ puts "\t" + result.title
31
+ puts "\t" + result.content
32
+ puts "\t" + result.uri
33
+ puts "\n"
34
+ end
35
+
36
+ Fetch the next set of results, and iterate over them
37
+
38
+ webSearch.nextResults.each do |result|
39
+ puts "\t" + result.title
40
+ puts "\t" + result.content
41
+ puts "\t" + result.uri
42
+ puts "\n"
43
+ end
44
+
45
+ Iterate over all the results, including the ones from calls to .nextResults
46
+
47
+ webSearch.each do |result|
48
+ puts "\t" + result.title
49
+ puts "\t" + result.content
50
+ puts "\t" + result.uri
51
+ puts "\n"
52
+ end
50
53
 
51
54
  ## Contributing
52
55
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "gsearch-parser"
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Diego Netto"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gsearch-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: