Displaying 2 results from an estimated 2 matches for "outletsearch".
2011 Dec 22
0
RHTMLForms / Scrape data from website that needs a parameter in-putted
Hi,
I'm trying to get a list of addresses from
http://tatts.com/racing/outletsearch based on a list of postcodes (zip
codes) and states. For example, I'm looking for State = 'Northern
Territory' and Postcode = '0800'. The list I'm working off is about 500
long so I was hoping to find a way to script this in R.
I regularly us readLines and the XML library t...
2012 Jan 04
0
RCurl : Problem with submitting using postForm()
...e a feeling it
is because there are 2 submit buttons on the page and I'm not hitting the
right one. I have tried everything I can think of to submit the form
correctly but with no luck.
My current code is as follows.
library(RCurl)
library(XML)
page<-postForm("http://tatts.com/racing/outletsearch.aspx",
`main_0$racingmiddle_0$CityTextBox`="",
`main_0$racingmiddle_0$PostcodeTextbox`="4000",
`main_0$racingmiddle_0$StateDropDownList`="Queensland",
`main_0$racingmiddle_0$SearchButton`="List Outlets")
doc<-htmlParse(page,asText=TRUE...