Learn R Programming

rzeit2 (version 0.2.3)

get_article_text: Get article text

Description

Get the article text for a single url or a vector of urls.

Usage

get_article_text(url, timeout = NULL)

Arguments

url

character. A single character string or character vector.

timeout

integer. Seconds to wait between queries.

Value

A named character vector with the respective text. If the content lies beyond the paywall the function returns "[ZEIT PLUS CONTENT] You need a ZEIT PLUS account to access this content.".

Details

get_article_text is the function, which fetches and parses an article. This function may break in the future due to layout changes on the ZEIT ONLINE website.

Examples

Run this code
# NOT RUN {
url <- paste0("https://www.zeit.de/kultur/film/2018-04/",
"tatort-frankfurt-unter-kriegern-obduktionsbericht")
get_article_text(url = url)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab