safely_read_html {readrba} | R Documentation |
read_html()
safely.
Description
The purpose of this function is to specify a user agent for scraping, to try a second time if a scrape attempt fails, and to return a useful error if the page cannot be scraped.
Usage
safely_read_html(url, ...)
Arguments
url |
url to read with |
... |
arguments passed to |
Value
If the URL is read without error, an XML document
(see ?xml2::read_html
).
[Package readrba version 0.1.11 Index]