我正在尝试从
url <- ("http://angel.co/companies?locations[]=1647-India")码
library(XML)
my <- htmlParse(url)错误:从url加载外部实体失败
Try 2
library(XML)
library(httr)
qw <- GET(url)
my <- readHTMLTable(rawToChar(qw$content))qw$content中的错误:$ operator对原子向量无效
Try 3
qw <- getURL(url)
my <- readHTMLTable(url, stringsAsFactors = F)错误:找不到函数"getURL“ 错误:从url加载外部实体失败
发布于 2017-05-18 06:33:42
url提供301状态,其原因是该网站只允许SSL连接。尝试这样做(本质上区别是使用https而不是http)。
library(XML)
library(RCurl)
url <- ("https://angel.co/companies?locations[]=1647-India")
htmlContent <- getURL(url)
htmlTree <- htmlTreeParse(htmlContent)https://stackoverflow.com/questions/44039173
复制相似问题