def get_from_url(url):
 import urllib2
 try:
  return urllib2.urlopen(url).read()
 except:
  return None

def get_from_url ( url ) : import urllib2 try : return urllib2 . urlopen ( url ) . read ( ) except : return None
retrieve url and return content timeout sets non-standard timeout .