我正在尝试通过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:期望为';'