I am trying to scrape some data off zappos.com. I want to scrape data every day at the same time and keep all this data in one data frame or file. How do I go about it?
My current database as of today looks like this. I just want the code to keep running every day at the same time and keep adding rows to this data frame.
This is my code(A part of it):
webpage2 <- read_html("https://www.zappos.com/adidas-
shoes/CK_XAVoBAeABAeICAwELHA.zso")
adidas_sale_count_html <- html_nodes(webpage2, '.selectedFacet
._2TdLt')
adidas_sale_count <- html_text(adidas_sale_count_html)
adidas_sale_count <- as.character(adidas_sale_count)
adidas_sale_count <- gsub("[()]","", adidas_sale_count)
head(adidas_sale_count)
shoes <- data.frame(Date = Sys.Date(),Originals_on_Sale =
adiori_sale_count, Originals_Total = adiori_total_count, Adidas_on_Sale
= adidas_sale_count, Adidas_Total = adidas_total_count)
Any help will be appreciated. Thank you