npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

google-scholar-extended

v1.0.1

Published

nodejs module for searching google scholar and listing profile information

Downloads

6

Readme

google-scholar-extended

nodejs module for searching google scholar and listing profile information

getting started

  1. npm install google-scholar-extended --save
  2. require the module let scholar = require('google-scholar-extended')
  3. enter a search term
'use strict'

let scholar = require('google-scholar-extended')

scholar.search('chairmouse')
  .then(resultsObj => {
    console.log(resultsObj)
  })

If you would prefer to get all results at once rather than paginated, you can use scholar.all rather than scholar.search to retrieve all of the results. as in:

'use strict'

let scholar = require('google-scholar-extended')

scholar.all('chairmouse')
  .then(resultsObj => {
    console.log(resultsObj) // this will have all ~112 results
  })

Get the information contained in a Google Scholar profile:

'use strict'

let scholar = require('google-scholar-extended')

scholar.profile('ukfCWkAAAAAJ')
  .then(resultsObj => {
    console.log(resultsObj)
  })

resultsObj

the results obj has 4 fields:

  • count: the approximate number of results Google Scholar found for your query
  • results: an array of result objects
    • the result abject has several fields:
      • title
      • url
      • authors
      • description (search only)
      • citedCount
      • citedUrl
      • relatedUrl (search only)
      • venue (profile only)
      • year (profile only)
  • nextUrl: (search only) the URL for the next set of results from google scholar
  • prevUrl: (search only) the URL for the previous set of results from google scholar
  • next: (search only) function that returns a promise which will resolve to a resultsObj containing the next results
  • previous: (search only) function that returns a promise which will resolve to a resultsObj containing the previous results

Example resultsObj for query "ChairMouse"

{
  results: [
    {
      title: 'ChairMouse: leveraging natural chair rotation for cursor navigation on large, high-resolution displays',
      url: 'http://dl.acm.org/citation.cfm?id=1979628',
      authors: [
        {
          name: 'A Endert',
          url: 'https://scholar.google.com/citations?user=_ZIAy3cAAAAJ&hl=en&oi=sra'
        }, {
          name: 'P Fiaux',
          url: ''
        }, {
          name: 'H Chung',
          url: ''
        }, {
          name: 'M Stewart',
          url: 'https://scholar.google.com/citations?user=PE1s-WgAAAAJ&hl=en&oi=sra'
        }, {
          name: 'et al.',
          url: ''
        }
      ],
      description: 'Abstract Large, high-resolution displays lead to more spatially based approaches. In such environments, the cursor (and hence the physical mouse) is the primary means of interaction. However, usability issues occur when standard mouse interaction is applied to  ...',
      citedCount: '16',
      citedUrl: 'https://scholar.google.com/scholar?cites=2800153897409878354&as_sdt=5,47&sciodt=0,47&hl=en&oe=ASCII',
      relatedUrl: 'https://scholar.google.com/scholar?q=related:UpmKQyIl3CYJ:scholar.google.com/&hl=en&oe=ASCII&as_sdt=0,47'
    },
    ...
  ],
  count: 93,
  nextUrl: 'https://scholar.google.com/scholar?start=10&q=chairmouse&hl=en&oe=ASCII&as_sdt=0,47',
  prevUrl: '',
  next: [Function],
  previous: [Function] 
}