如何在R:-EntityRef中修复此错误:期望为';'错误:1:EntityRef:期望为“;”

时间:2019-03-27 02:33:14

标签: r

我正在尝试通过Google Finance提取股票新闻,但在下面给出错误提示

url.b1 = 'http://www.google.com/finance/company_news?q='
url    = paste(url.b1, "SBIN", '&output=rss', "&start=", 1,
                "&num=", 20, sep = '')

url    = gsub("&", "&", url)
url    = URLencode(url)

# parse xml tree, get item nodes, extract data and return data frame
doc   = xmlTreeParse(url, useInternalNodes = T)

  

EntityRef:期待';'   错误:1:EntityRef:期望为';'

0 个答案:

没有答案