r - How to read an html table using Rselenium? -


i'm using rselenium navigate webpage. following code doing so. haven't provided url because i'm using url in company needs vpn connect:

rselenium::startserver() require(rselenium) remdr <- remotedriver() remdr$navigate("some url") 

after navigate webpage, inside html source have following table:

<font size="2"> <table border="1"> <tbody> <tr> <td> item1 </td> <td> 0 </td> <td> 0.05 </td> <td> 2.43 </td> <td align="center"> pct </td> <td align="center"> 1 </td> </tr> </tbody> </table> 

now question how can pull out content of table? please assume url not existent, otherwise can use xml function: readhtmltable(remdr$getcurrenturl()). not work reason. need use remotedriver handle (remdr) only. time

something like:

doc <- htmlparse(remdr$getpagesource()[[1]]) readhtmltable(doc) 

should allow access html , process tables contained.


Comments

Popular posts from this blog

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

java - Incorrect order of records in M-M relationship in hibernate -