_plugins/googlescholar.rb
# ID for Bungartz et al. paper
ID for Bungartz et al. paper
ID for Bungartz et al . paper
def generate(site)
      doc = Nokogiri::HTML(URI.parse(SCHOLAR_URL + CITATION_ID).open)
      citations = doc.css('#gs_ab_md .gs_ab_mdw').text.split[1]
      data = { 'id' => CITATION_ID,
               'citations' => citations }
      site.data['scholar'] = data
    end
def generate ( site ) doc = Nokogiri :: HTML ( URI . parse ( SCHOLAR_URL + CITATION_ID ) . open ) citations = doc . css ( '#gs_ab_md .gs_ab_mdw' ) . text . split [ 1 ] data = { 'id' => CITATION_ID , 'citations' => citations } site . data [ 'scholar' ] = data end
ID for Bungartz et al.
ID for Bungartz et al .
# Search for string saying 'About 123 results (0,03 sec)' # Split and take second value '123'
site
<not_specific>