Displaying 2 results from an estimated 2 matches for "bus_serviceopt".
2007 Apr 19
1
Do you have any idea what could be the problem with this script?
...ere
at all (try to do the same in the browser). Any suggestions?
require ''rubygems''
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...
2007 Apr 20
2
Running script does not return the correct page
...ere
at all (try to do the same in the browser). Any suggestions?
require ''rubygems''
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...