Description Usage Arguments Value Note Examples
get_article()
scrapes the full text from an article hosted on Scielo.
In bilingual journals, the text retrieved is in the journal's main language
used for publication (most of the time, it is English).
1 | get_article(x, output_text = TRUE)
|
x |
a character vector with the link or id of the article hosted on Scielo to be scrapped. |
output_text |
a logical indicating whether |
When the argument output_text
is TRUE
, the function returns
a character
vector with the requested article's content. When output_text
is FALSE
, the function returns a tibble
with the following variables:
text: article's full text (character
).
doi: article's Digital Object Identifier (DOI, (character
)).
Sometimes, the Scielo website is offline for maintaince, in which cases this function will not work (i.e., users will get HTML status different from the usual 200 OK).
1 2 | article <- get_article(x = "http://www.scielo.br/scielo.php?
script=sci_arttext&pid=S1981-38212016000200201&lng=en&nrm=iso&tlng=en")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.