gcite_citation_index {gcite} | R Documentation |
Parse Google Citation Index
Description
Parses a google citation indices (h-index, etc.) from main page
Usage
gcite_citation_index(doc, ...)
## S3 method for class 'xml_node'
gcite_citation_index(doc, ...)
## S3 method for class 'xml_document'
gcite_citation_index(doc, ...)
## S3 method for class 'character'
gcite_citation_index(doc, ...)
Arguments
doc |
A xml_document or the url for the main page |
... |
Additional arguments passed to |
Value
A matrix of indices
Examples
library(httr)
library(rvest)
library(gcite)
url = "https://scholar.google.com/citations?user=T9eqZgMAAAAJ"
url = gcite_url(url = url, pagesize = 10, cstart = 0)
if (!is_travis() & !is_cran()) {
ind = gcite_citation_index(url)
doc = content(httr::GET(url))
ind = gcite_citation_index(doc)
ind_nodes = rvest::html_nodes(doc, "#gsc_rsb_st")[[1]]
ind = gcite_citation_index(ind_nodes)
}
[Package gcite version 0.10.1 Index]