Scraping the web is fraught with peril. URLs die; networks get disrupted and best laid plans for building a corups from links can quickly go awry. Use this funtion to mitigate some of the pain of retrieving web resoures.
the url of the page to retrieve
Additional configuration settings such as http
a call to
Further named parameters, such as
The handle to use with this request. If not
supplied, will be retrieved and reused from the
This is a thin wrapper for
purrr::safely() that will
either return a
response object or
NULL if there was an error.
If you need the reason for the error (e.g.
Could not resolve host...)
you should write your own wrapper.