def scrape_spring_config(url):
 request = urllib2.Request(url=url)
 response = urllib2.urlopen(request)
 http_code = response.getcode()
 content = response.read()
 if ((http_code < 200) or (http_code >= 300)):
  raise ValueError('Invalid HTTP={code} from {url}:\n{msg}'.format(code=http_code, url=url, msg=content))
 json = JSONDecoder().decode(content)
 return infer(json)

def scrape_spring_config ( url ) : request = urllib2 . Request ( url = url ) response = urllib2 . urlopen ( request ) http_code = response . getcode ( ) content = response . read ( ) if ( ( http_code < 200 ) or ( http_code >= 300 ) ) : raise ValueError ( 'Invalid HTTP={code} from {url}:\n{msg}' . format ( code = http_code , url = url , msg = content ) ) json = JSONDecoder ( ) . decode ( content ) return infer ( json )
construct a config binding dictionary from a running instances baseurl .