I was trying to import (scrape) sets of tables on a news blog post online using xml2's read_html(), hence html.table() and XML::readHTMLTable() functions. I got no table or anything useful with
readHTMLTable("https://www.theabusites.com/197-nuc-approved-universities-in-nigeria-2021/",..., header=TRUE, stringAsFactor=FALSE) #Note: not CSV or html tag. It returns ? unable to find the inherited method for the function 'readHTMLTable' for signature " NULL"', also <XML contents does not seem to be XML.> What can I do? Also, rvest, too, returns the error flag, "Error in open.connection(x, "rb") : Couldn't connect to server" - What is causing this error message? Thanks in advance
library(xml2) ; library(rvest) url <- "https://www.theabusites.com/197-nuc-approved-universities-in-nigeria-2021/" ; page <- read_html(url) ; tables <- html_table(page, fill = TRUE)