I have a script that I can run from my pythonanywhere console and it executes this code perfectly and I'm able to process the website. However, whenever I try to execute this code from my web2py default.py controller it times out. If I don't add the timeout then it hangs forever. If I change the website to www.google.com it works. Any ideas why it works in a script and not in web2py?
html = urllib2.urlopen('http://www.grocerysmarts.com/utah/lists/indexg84cac.php?m84ac2', timeout=10).read()
Thanks!