Skip to content

Commit

Permalink
Update hsbhist.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mokazuma committed Oct 4, 2015
1 parent 924ee2a commit cd341d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/hsbhist.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ hsbhist <- function(input, mode="file", output=input, hist=TRUE,
nodtext <- rvest::html_attrs(imgnod)
for(i in 1:length(nodtext)) {
downloader::download(as.character(nodtext[[i]][2]),
sprintf("%s/%s/%s_%02d%s", current, "scraping", output, i, filetype),
sprintf("%s/%s/%s_%02d%s", current, "scraping", output, i, filetype),
mode="wb")
Sys.sleep(1)
}
datfil <- dir(path=paste0(current, "/", mode), pattern=filetype)
filNum <- length(list.files(pattern = ".jpg"))
filNum <- length(path = paste0(current, "/", mode), list.files(pattern = ".jpg"))
}

##### main loop
Expand Down

0 comments on commit cd341d3

Please sign in to comment.