vendredi 25 décembre 2015

Scraping web with XML package in R

I need to scraping the table on the next website:

http://ift.tt/1JzZAF9

When I use this code:

library(XML)

url <- "http://ift.tt/1JzZAF9"
html <- htmlTreeParse(url,useInternalNodes=T)
readHTMLTable(html)

I get the following error:

Error in UseMethod("xmlNamespaceDefinitions") : 
  no applicable method for 'xmlNamespaceDefinitions' applied to an object of class "NULL"

Any solution?

Thanks




Aucun commentaire:

Enregistrer un commentaire