Created: 2014-05-18 17:15
Updated: 2014-09-03 16:38

gentle-scholar gem

Gem Version Build Status

note: gentle-scholar tested to work on jruby-1.7.* even though Travis-CI reports build exec error

Gem to extract Google Scholar publication given URL of a publication


NOTE: This gem is not to to search or crawl through Google Scholar. This also will not extract bibtex (please use gscholar or similar gem for that).

This gem is to extract information on specific publications from Google Scholar. It can retrieve standard citation information (authors, journal, title, etc.). Additionally, it can retrieve number of citations reported by Google Scholar, link to citations page, trend of citations over time, and link to author's Google Scholar profile.


$ gem install gentle-scholar


Given a google scholar article such as:

Retrieve information by copying the author and article ID from the URL:

  • Run from command line

    $ gentle-scholar 6WjiSOwAAAAJ:9yKSN-GCB0IC

  • Call from Ruby code:

    pub = GentleScholar::Publication.extract_from_http('6WjiSOwAAAAJ:9yKSN-GCB0IC')

This returns:

=> {:cites=>16,
 :title=>"Research Note\u0097Online Users' Switching Costs: Their Nature and Formation",
 :trend=>{:"2012"=>4, :"2013"=>3, :"2014"=>9},
 :authors=>[["Soumya", "Ray"], ["Sung", "S", "Kim"], ["James", "G", "Morris"]],
 :date=>#<Date: 2012-03-01 ((2455988j,0s,0n),+0s,2299161j)>,
 :journal=>"Information Systems Research",
  "The highly competitive and rapidly changing market for online services is becoming increasingly effective at locking users in through the coercive effects of switching costs. Although the information systems field increasingly recognizes that switching costs plays a big part in enforcing loyalty, little is known about what factors users regard as switching costs or why they perceive these costs. Consequently, it is hard for online services to know what lock-in strategies to use and when to apply them. We address this problem by first  ..."}
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more