UNPKG
@drjohnvidler/google-scholar-scrape
Version:
latest (1.2.1)
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
Scrapes Google Scholar data to a usable JSON API
@drjohnvidler/google-scholar-scrape
/
test.js
12 lines
(8 loc)
•
257 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
GoogleScholar
from
"./index.js"
;
const
gs =
new
GoogleScholar
();
try
{
const
citations =
await
gs.
getCitations
(
'sRDmoKAAAAAJ'
);
console
.
log
(
JSON
.
stringify
( citations,
null
,
2
) ); }
catch
(error) {
console
.
error
(
'Error:'
, error); }