Displaying 2 results from an estimated 2 matches for "sbstransit".
Did you mean:
sb_transid
2007 Apr 19
1
Do you have any idea what could be the problem with this script?
..., the results are not there
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...
2007 Apr 20
2
Running script does not return the correct page
..., the results are not there
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...