Description Usage Arguments Value Examples
Parses a google citation indices (h-index, etc.) from main page
1 2 3 4 5 6 7 8 9 10 11 12 13 | gcite_papers(doc, ...)
## S3 method for class 'xml_nodeset'
gcite_papers(doc, ...)
## S3 method for class 'xml_document'
gcite_papers(doc, ...)
## S3 method for class 'character'
gcite_papers(doc, ...)
## Default S3 method:
gcite_papers(doc, ...)
|
doc |
A xml_document or the url for the main page |
... |
Additional arguments passed to |
A matrix of indices
1 2 3 4 5 6 7 8 9 10 11 | library(httr)
library(rvest)
url = "https://scholar.google.com/citations?user=T9eqZgMAAAAJ"
url = gcite_url(url = url, pagesize = 10, cstart = 0)
if (!is_travis() & !is_cran()) {
ind = gcite_papers(url)
doc = content(httr::GET(url))
ind = gcite_papers(doc)
ind_nodes = rvest::html_nodes(doc, "#gsc_a_b")
ind = gcite_papers(ind_nodes)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.