search for: jb51

Displaying 1 result from an estimated 1 matches for "jb51".

Did you mean: jb1
2012 Sep 04
0
get only little part of html with htmlParse
Here is my code. there are three method to get text to be parded by htmlParse function. 1.file on mycomputer options(encoding="gbk") library(XML) xmltext1 <- htmlParse("/home/tiger/Desktop/27174.htm" ) #/home/tiger/Desktop/27174.htm is the file of http://www.jb51.net/article/27174.htm downloaded on my computer. 2.url options(encoding="gbk") library(XML) xmltext2 <- htmlParse("http://www.jb51.net/article/27174.htm" ) 3.readLines options(encoding="gbk") library(XML) txt=readLines("http://www.jb51.net/article/271...