mercredi 6 janvier 2016

Web Scraping in R using getURL

Hi I am trying to read data of the World's powerfl brands from the link "http://ift.tt/1PO18C6" into a data fame using R

I am a beginner so I tried using the following code to retrieve the data

  library(XML)
  library(RCurl)
  # Read and parse HTML file
  forbe = 'http://ift.tt/1H4OGVR'

  data <- getURL('http://ift.tt/1H4OGVR')
  data
  htmldata <- readHTMLTable(data)
  htmldata 

Could anyone please help me in retrieving data from the webpage mentioned




Aucun commentaire:

Enregistrer un commentaire