I am collecting data from a webpage and I keep getting the error below. I think it might have to do with the CSS patterns but I can't seen to find one that is general enough to collect the data from the website.
Error in rbindlist(DATA, fill = TRUE) : Column 2 of item 42 is length 15 inconsistent with column 6 which is length 17. Only length-1 columns are recycled.
Also here is the code that I used with the CSS Patterns.
pattern_names <- c("Username.Status","Topic.Title","Post.Date","Post","Reply.Number")
topic_filter <- c("topic\\=\\d+\\.\\d+", "board\\=12\\.\\d+$")
Rcrawler("https://ssdfacts.com/forum/index.php?board=12.0",
no_cores = 4, no_conn = 4, MaxDepth = 4, RequestsDelay = 0.1,
# dataUrlfilter = topic_data_filter,
crawlUrlfilter = topic_filter,
ExtractCSSPat = ssdfacts,
PatternsNames = pattern_names,
ManyPerPattern = TRUE,
saveOnDisk = FALSE)
url_list <- rename( select(INDEX, Id, Url), PageID = Id)
url_list$PageID <- as.numeric(url_list$PageID)
ssdfacts_data <- rbindlist(DATA) %>%
left_join(url_list, by="PageID")