What's Wrong: rvest's Error 'in open.connection(x, "rb") and readHTMLTable ()`s "XML contents does not seem to be XML"?

45 Views Asked by At

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

0

There are 0 best solutions below