views:

21

answers:

1

I have a script which gets a webpage with a meta refresh. I need to parse the retrieved page but mechanize seems to follow the redirect. How do I get it to stop following it?

+1  A: 

You can simply disable it

import mechanize
browser = mechanize.Browser()
browser.set_handle_refresh(False)
WoLpH
thanks that worked well.
Joe Schmoe