retrive-dates.R

Home   »   retrive-dates.R

#I have 100 databases from where I wish to enlist the date of update. Trying to do this in R. Example given below

library(stringr)
library(rvest)
library(lubridate)

html <- readLines("https://grafnet.kaust.edu.sa/assayM/")
t <- html[grep(pattern = "(?i)(last update | update | updated)", x = html, ignore.case = TRUE)]
cleanFun <- function(htmlString) {
  return(gsub("<.*?>", "", htmlString))
}
t <- cleanFun(t)

Leave a Reply

Your email address will not be published. Required fields are marked *