readHtmlLinks: links of a url page

Description Usage Arguments Details Examples

View source: R/utils-HTML.R

Description

Get the links of a url page.

Usage

1
readHtmlLinks(link, xpath = ".//a", ...)

Arguments

link

[character] the url page.

xpath

[character] a string used to extract the relevant expression.

...

additional arguments to be passed to read_html.

Details

inspired from http://stackoverflow.com/questions/27297484/r-using-rvest-package-instead-of-xml-package-to-get-links-from-url

Examples

1
2
readHtmlLinks("https://cran.r-project.org/")
readHtmlLinks("https://github.com/bozenne/BuyseTest")

bozenne/butils.base documentation built on April 1, 2020, 6:13 p.m.