Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
mechanize 'stop button'
Brian Lonsdorf
11/10/2008 2:26:00 AM
Hello, I've run into a bit of a situation with mechanize:
def get_page
agent = WWW::Mechanize.new
agent.read_timeout = 150
page_one = agent.get(www.foo.com)
page_two = agent.submit(form) # will timeout
rescue Timeout::Error
page_two.body # returns nil
end
When the page eventually times out, i'd still like to parse what it
gathered, but i can't grab what it read. The functionality i really
want is to 'hit the stop button' and grab what's there.
Any ideas?
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
mechanize 'stop button'
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password