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?
views:
21answers:
1
+1
A:
You can simply disable it
import mechanize
browser = mechanize.Browser()
browser.set_handle_refresh(False)
WoLpH
2010-08-24 02:34:31
thanks that worked well.
Joe Schmoe
2010-08-24 02:39:48