google-scholarly

Google Scholar Node.js

Usage no npm install needed!

<script type="module">
  import googleScholarly from 'https://cdn.skypack.dev/google-scholarly';
</script>

README

Google Scholar Node.js

install size npm package version github license js semistandard style

Installation

npm install --save google-scholarly

Get API_KEY from: https://proxiesapi.com/

Example

With proxy API key

Scholar
  .init(apiKey)
  .getPubAuthors('"A frequency-domain analysis of haptic gratings"')
  .then(res => console.log(res))
  .catch(err => console.error(err.message));

Without proxy API key (NOT RECOMMENDED)

Scholar
  .init()
  .getPubAuthors('"A frequency-domain analysis of haptic gratings"')
  .then(res => console.log(res))
  .catch(err => console.error(err.message));

Expected output:

[
  {
    name: 'Steven A. Cholewiak, PhD',
    affiliation: 'Vision Scientist',
    homepage: 'http://steven.cholewiak.com/',
    domain: 'berkeley.edu',
    hindex: '8',
    interests: [
      'Depth Cues',
      '3D Shape',
      'Shape from Texture & Shading',
      'Naive Physics',
      'Haptics'
    ]
  },
  {
    name: 'Kwangtaek Kim',
    affiliation: 'Kent State University',
    homepage: undefined,
    domain: 'cs.kent.ed',
    hindex: '12',
    interests: [
      'haptics',
      'perception',
      'immersive user interface',
      'visuohaptic watermarking'
    ]
  },
  {
    name: 'Hong Z Tan',
    affiliation: 'Professor of ECE, Purdue University',
    homepage: 'http://engineering.purdue.edu/~hongtan',
    domain: 'purdue.edu',
    hindex: '49',
    interests: [ 'haptics', 'psychophysics' ]
  }
]