get_url: Get URL

Description Usage Arguments Value Examples

View source: R/get_url.R

Description

get_url download requested url with elegant error handling for output to a data.frame. This function is intended to populate a data.frame with the status of the attempted download of each url, hence will return the download statys as a character string with more friendly error messages

Usage

1
get_url(site_url, dest, sleep = 0.5)

Arguments

dest

dest A local file destination for the url to be saved to.

sleep

sleep Time in seconds to wait at the end of each request.

x

x A url as a character string.

Value

A character string of either "success" or a simplified error or warning message, or "unhandled error"/"unhandled warning".

Examples

1
2
3
#library(scrapeML)

#get_url("www.google.com",tempfile())

ivyleavedtoadflax/scrapeML documentation built on May 18, 2019, 7:14 a.m.