How to retrieve http file list from folder and download in R

62 Views Asked by At

I would like to get a list of downloadable files from an http website (data.mesonet.unl), and then download them. How do I do this? I've tried using the following code. but it just returns a bunch of html that has the actual href links embedded in it. There must be something out there to easily do this automatically - I just can't find it. The following is my basic code, and all variants I've tried basically do the same thing, with no real results. Thanks in advance.

library(RCurl)
url <- 'https://data.mesonet.unl.edu/data/alda_5nw/'
files <- getURLContent(url)
0

There are 0 best solutions below