scrape_links: Extract link texts and urls from a web page

View source: R/utils.R

scrape_linksR Documentation

Extract link texts and urls from a web page

Description

Simple function based on [Gist by Paul Rougieux](https://gist.github.com/paulrougieux/e1ee769577b40cd9ed9db7f75e9a2cc2)

Usage

scrape_links(url, stringsAsFactors = FALSE)

Arguments

url

character: an url

stringsAsFactors

logical: should character vectors be converted to factors in output data.frame?

Value

a data.frame of link text and urls


l-hodge/uk-geog documentation built on Sept. 5, 2022, 5:28 p.m.