get_article_text: Get article text

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1

Arguments

url

character. A single character string or character vector.

timeout

integer. Seconds to wait between queries.

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.

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.".

Author(s)

Jan Dix <jan.dix@uni-konstanz.de>

Examples

1
2
3
4
5
6
## Not run: 
url <- paste0("https://www.zeit.de/kultur/film/2018-04/",
"tatort-frankfurt-unter-kriegern-obduktionsbericht")
get_article_text(url = url)

## End(Not run)

jandix/rzeit2 documentation built on Sept. 30, 2020, 3:19 p.m.