Learn R Programming

rzeit2 (version 0.2.3)

get_article_images: Get article images

Description

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

Usage

get_article_images(url, timeout = 0, download = NULL)

Arguments

url

character. A single character string or character vector.

timeout

integer. Seconds to wait between queries.

download

character. Path to download folder. If path is set to NULL images are not downloaded.

Value

A data frame including meta information for each image.

Details

get_article_images is the function, which fetches and parses meta information for each image of an article and downloads the images. 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_images(url = url, timeout = 0)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab