google-scholar 0.0.1 → 0.0.2

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGM2NTE5Njc2ZTYxODM1NGQxNTI4ODg3MzY3ZmVmNzlhNjJiMjhmMA==
4
+ OTBmNDI2ZTQ0MzljOTBhZWVlZjQ3OGI4OWUwMzBkMWExMTBlOTU3ZQ==
5
5
  data.tar.gz: !binary |-
6
- ZGRlYzQ3MDc3MGEyMGUwMGQ4NDAyM2QwNzFlNzUzY2Q2MmNmZTBjYg==
6
+ YWE1Y2MxOGZhMjRlY2E0ZDM2MzY3ZGY3ZTBkMDE2MDY4NmJlMDE1Mg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjE0YzY2NjA5YjBlNDBiODI4N2VkMmFkNDZjYmI5OGEyYzEyNjA2ZjdlMjk2
10
- YzljNWRkMTlmZTE4N2I2YzIyMmQ4M2UzMGIzYTQzMWIzMzc0MTMzNDJjODEx
11
- NzYxODQ4ZmVkMzY1M2M0ZTBlNjY0ZjBmY2Y2Mjg3ODg5YmEzYjE=
9
+ Yjk5MzlmYjNlZGY4ZWNjOThhZTBjMThjODBhNWNlZmIzZDMyNjJiZTg4M2Fj
10
+ NDJjZjM0NjBkNmU0YWRhNTM3MzhhOWRhMzlhZWY3MmI1OGNjYTk1OWFiZWNj
11
+ ZDk2ZGZiMDdiM2ZlOTZiZGE0ZjhlMjRkNmJiMzA0NzAxY2FlZWU=
12
12
  data.tar.gz: !binary |-
13
- Y2Q2MDJiMjFiMWY5MDg5MjIwMDFjMWNkMWU0YWEyODZlMzIzMWVkNjEzZTNk
14
- ZWE1YmQxYjIzODMzNDJjZjA4MjJkY2U3ODRiMmMzNjdiZWI2OTM0Y2FhYWIy
15
- YWUxYjcyYjFhMGZlZTQxNjk1ZDE2MWYyNDRiYzRjMzQ5NGZkMWY=
13
+ ZTM2ZmRkYzZlZWVjYjUxOWZmM2Y4YTYzZWI0NjIyMTMzNzY4YTExM2VhNTVm
14
+ YWM3NTEzMzk5MGFhNGE4ODAyMGM3NDA2N2ZkNzg1MTYxOWRjN2I5MWQyMTNh
15
+ MjRjYWVkOGYwNzVhMmE3ZDAwZDlmY2JlOTU2ZTA4ZDMwNDBlZGM=
data/README.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Google::Scholar
2
2
 
3
- TODO: Write a gem description
3
+ Google Scholar interface. Currently only works for Author searches.
4
+
5
+ ## WARNINGS
6
+
7
+ This gem restricts its hits to Google Scholar as much as possible, but be forewarned that their page may
8
+ restrict your hits if it starts to hit it too much. There is no built in rate limiter to this gem.
4
9
 
5
10
  ## Installation
6
11
 
@@ -18,7 +23,30 @@ Or install it yourself as:
18
23
 
19
24
  ## Usage
20
25
 
21
- TODO: Write usage instructions here
26
+ Run an author search:
27
+
28
+ ```ruby
29
+ results = Google::Scholar::Base.author_search("author name")
30
+ ```
31
+
32
+ Get authors (as an enumerator):
33
+
34
+ ```ruby
35
+ results.authors
36
+ ```
37
+
38
+ Get author's article summaries (as an enumerator):
39
+
40
+ ```ruby
41
+ results.authors.first.articles
42
+ ```
43
+
44
+ ## Future Development
45
+
46
+ - Support for searching articles
47
+ - Support for full articles (what you get when you navigate to an article's full_article_url)
48
+ - Improved documentation
49
+ - Rate limiter?
22
50
 
23
51
  ## Contributing
24
52
 
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["trey.terrell@oregonstate.edu"]
11
11
  spec.description = %q{Google Scholar interface. Currently only works for Author searches.}
12
12
  spec.summary = %q{Google Scholar interface. Currently only works for Author searches.}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/terrellt/ruby-google-scholar"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
@@ -1,5 +1,5 @@
1
1
  module Google
2
2
  module Scholar
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-scholar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trey Terrell
@@ -152,7 +152,7 @@ files:
152
152
  - spec/lib/google/scholar/scraper_spec.rb
153
153
  - spec/lib/google/scholar_spec.rb
154
154
  - spec/spec_helper.rb
155
- homepage: ''
155
+ homepage: https://github.com/terrellt/ruby-google-scholar
156
156
  licenses:
157
157
  - MIT
158
158
  metadata: {}