1
url <- ("http://angel.co/companies?locations[]=1647-India")
代碼提取數據:
library(XML)
my <- htmlParse(url)
Error: failed to load external entity from url
嘗試2:
library(XML)
library(httr)
qw <- GET(url)
my <- readHTMLTable(rawToChar(qw$content))
Error in qw$content : $ operator is invalid for atomic vectors
嘗試3:
qw <- getURL(url)
my <- readHTMLTable(url, stringsAsFactors = F)
Error: could not find function "getURL"
Error: failed to load external entity from url