Learn R Programming

textpress (version 1.0.0)

web_scrape_urls: Scrape News Data from Various Sources

Description

Function scrapes content of provided list of URLs.

Usage

web_scrape_urls(x, cores = 3)

Value

A data frame containing scraped news data.

Arguments

x

A character vector of URLs.

cores

The number of cores to use for parallel processing.

Examples

Run this code
if (FALSE) {
url <- 'https://www.nytimes.com/2024/03/25/nyregion/trump-bond-reduced.html'
article_tif <- web_scrape_urls(x = url, input = 'urls', cores = 1)
}


Run the code above in your browser using DataLab