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