I don't have really understanding of asp.net at all, but mechanize is doing weird things when I try to visit an aspx page: https://deerfield.hyatte-concierge.com/Welcome.aspx?langid=en-US I looked at this example: Screenscaping aspx with Python Mechanize - Javascript form submission
However, it seems like sometimes I get an error that says if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
My code is very simple:
import mechanize
b = mechanize.Browser()
b.set_handle_robots(False)
response = b.open(new_url)
page = response.read()
print page
Sometimes I get the page sometimes I get an error, can somebody explain this to me?