Module: Google::Scholar

Defined in:
lib/google/scholar.rb,
lib/google/scholar/base.rb,
lib/google/scholar/author.rb,
lib/google/scholar/scraper.rb,
lib/google/scholar/version.rb,
lib/google/scholar/document.rb,
lib/google/scholar/author_search.rb,
lib/google/scholar/article_summary.rb,
lib/google/scholar/author_enumerator.rb,
lib/google/scholar/article_enumerator.rb,
lib/google/scholar/document/authors_document.rb,
lib/google/scholar/document/authors_profile_document.rb

Defined Under Namespace

Classes: ArticleEnumerator, ArticleSummary, Author, AuthorEnumerator, AuthorSearch, AuthorsDocument, AuthorsProfileDocument, Base, Document, Scraper

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.author_search_url(author) ⇒ Object



25
26
27
# File 'lib/google/scholar.rb', line 25

def self.author_search_url(author)
  "#{self.http_scheme}#{self.google_root}/citations?view_op=search_authors&hl=en&mauthors=#{::CGI::escape("author:\"#{author}\"")}"
end

.google_rootObject



15
16
17
# File 'lib/google/scholar.rb', line 15

def self.google_root
  "scholar.google.com"
end

.google_urlObject



21
22
23
# File 'lib/google/scholar.rb', line 21

def self.google_url
  "#{self.http_scheme}#{self.google_root}"
end

.http_schemeObject



18
19
20
# File 'lib/google/scholar.rb', line 18

def self.http_scheme
  "http://"
end