[R] how to write html output (webscraped using RCurl package) into file?

sagarnikam123 sagarnikam123 at gmail.com
Sat Apr 21 16:05:34 CEST 2012


i want
"http://scop.berkeley.edu/astral/pdbstyle/?id=d1fjgc2&output=html",showing
information in webpage to be written in .txt file as it is(i don't want any
html tag)
i am using "RCurl" package

>marathi<-htmlTreeParse("http://scop.berkeley.edu/astral/pdbstyle/?id=d1fjgc2&output=html")
>marathi
>kasam<-marathi$children$html[["body"]][["pre"]][["text"]]
>kasam
> write(kasam,"papita.txt")
Error in cat(list(...), file, sep, fill, labels, append) : 
  argument 1 (type 'list') cannot be handled by 'cat

i want to write kasam, as shown on console into  .txt file


--
View this message in context: http://r.789695.n4.nabble.com/how-to-write-html-output-webscraped-using-RCurl-package-into-file-tp4576476p4576476.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list