View source: R/safely_read_html.R
safely_read_html | R Documentation |
read_html()
safely.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.
safely_read_html(url, ...)
url |
url to read with |
... |
arguments passed to |
If the URL is read without error, an XML document
(see ?xml2::read_html
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.