0
我從的Cricinfo錯誤作爲R
> #Set internet
> Setinternet2=TRUE
>
> #Loading Libraries
> library(XML)
> library(tm)
> library(RCurl)
>
> #URL
> URL="http://stats.espncricinfo.com/ci/engine/records/batting/most_runs_career.html?class=1;id=2010;type=year"
>
> #HTML parsing
> List=htmlParse(URL)
Error in htmlParse(URL) :
error in creating parser for http://stats.espncricinfo.com/ci/engine/records/batting/most_runs_career.html?class=1;id=2010;type=year
>
提取的Webdata任何想法,得到下面的錯誤HTML解析如何解決這個問題?
適合我。當我說'有效'時,我的意思是我得到了一大堆htmlEntityParseRef消息,標記不匹配和一堆其他警告。幫助中的例子(htmlParse)有效嗎? – Spacedman