Displaying 2 results from an estimated 2 matches for "txtsvcno".
2007 Apr 19
1
Do you have any idea what could be the problem with this script?
...;
require ''mechanize''
agent = WWW::Mechanize.new
agent.user_agent_alias = ''Mac Safari''
page =
agent.get("http://www.sbstransit.com.sg/iris3/bus_serviceopt.aspx")
search_form = page.forms.with.name("Form1").first
search_form.txtsvcno = "014"
search_form.txtbusstop = ''92129''
search_results = agent.submit(search_form)
open(''output.html'',''w'') {|f| f.write search_results.body}
Thanks,
Peter
2007 Apr 20
2
Running script does not return the correct page
...;
require ''mechanize''
agent = WWW::Mechanize.new
agent.user_agent_alias = ''Mac Safari''
page =
agent.get("http://www.sbstransit.com.sg/iris3/bus_serviceopt.aspx")
search_form = page.forms.with.name("Form1").first
search_form.txtsvcno = "014"
search_form.txtbusstop = ''92129''
search_results = agent.submit(search_form)
open(''output.html'',''w'') {|f| f.write search_results.body}
Thanks,
Peter