UNPKG

1.92 kBMarkdownView Raw
1# Google Scholar Node.js
2
3[![install size](https://badgen.net/packagephobia/install/google-scholarly)](https://packagephobia.now.sh/result?p=google-scholarly)
4[![npm package version](https://badgen.net/npm/v/google-scholarly)](https://npm.im/google-scholarly)
5[![github license](https://badgen.net/github/license/ikovac/google-scholarly)](https://github.com/ikovac/google-scholarly/blob/master/LICENSE)
6[![js semistandard style](https://badgen.net/badge/code%20style/semistandard/pink)](https://github.com/Flet/semistandard)
7
8## Installation
9```
10npm install --save google-scholarly
11```
12Get `API_KEY` from: https://proxiesapi.com/
13
14## Example
15### With proxy API key
16```js
17Scholar
18 .init(apiKey)
19 .getPubAuthors('"A frequency-domain analysis of haptic gratings"')
20 .then(res => console.log(res))
21 .catch(err => console.error(err.message));
22```
23### Without proxy API key (NOT RECOMMENDED)
24```js
25Scholar
26 .init()
27 .getPubAuthors('"A frequency-domain analysis of haptic gratings"')
28 .then(res => console.log(res))
29 .catch(err => console.error(err.message));
30```
31
32Expected output:
33```
34[
35 {
36 name: 'Steven A. Cholewiak, PhD',
37 affiliation: 'Vision Scientist',
38 homepage: 'http://steven.cholewiak.com/',
39 domain: 'berkeley.edu',
40 hindex: '8',
41 interests: [
42 'Depth Cues',
43 '3D Shape',
44 'Shape from Texture & Shading',
45 'Naive Physics',
46 'Haptics'
47 ]
48 },
49 {
50 name: 'Kwangtaek Kim',
51 affiliation: 'Kent State University',
52 homepage: undefined,
53 domain: 'cs.kent.ed',
54 hindex: '12',
55 interests: [
56 'haptics',
57 'perception',
58 'immersive user interface',
59 'visuohaptic watermarking'
60 ]
61 },
62 {
63 name: 'Hong Z Tan',
64 affiliation: 'Professor of ECE, Purdue University',
65 homepage: 'http://engineering.purdue.edu/~hongtan',
66 domain: 'purdue.edu',
67 hindex: '49',
68 interests: [ 'haptics', 'psychophysics' ]
69 }
70]
71```