[R] Extract Data from a Webpage

2008-12-16 Thread Chuck Cleland
Hi All: I would like to extract the provider name, address, and phone number from multiple webpages like this: http://oasasapps.oasas.state.ny.us/portal/pls/portal/oasasrep.providersearch.take_to_rpt?P1=3489P2=11490 Based on searching R-help archives, it seems like the XML package might have

Re: [R] Extract Data from a Webpage

2008-12-16 Thread Duncan Temple Lang
Hi Chuck. Well, here is one way theURL = http://oasasapps.oasas.state.ny.us/portal/pls/portal/oasasrep.providersearch.take_to_rpt?P1=3489P2=11490; doc = htmlParse(theURL, useInternalNodes = TRUE, error = function(...) {}) # discard any error messages # Find the nodes