Learn R Programming

ojsr (version 0.1.2)

get_articles_from_search: Scraping OJS search results for a given criteria to retrieve articles<U+2019> URL

Description

takes a vector of OJS URLs and a string for search criteria to compose search result URLs, (including pagination) then it scrapes them to retrieve the articles<U+2019> URLs.

Usage

get_articles_from_search(input_url, search_criteria, verbose = FALSE)

Arguments

input_url

Character vector.

search_criteria

Character string

verbose

Logical.

Value

A dataframe with the urls of the articles linked from the OJS issue page.

Examples

Run this code
# NOT RUN {
journals <- c(
   'https://revistapsicologia.uchile.cl/index.php/RDP/',
   'https://publicaciones.sociales.uba.ar/index.php/psicologiasocial/'
)
criteria <- "actitudes"
search_result_pages <- ojsr::get_articles_from_search(input_url = journals,
    search_criteria = criteria, verbose = TRUE)
# }

Run the code above in your browser using DataLab