def request_soup(url, **kwargs):
 parser = kwargs.pop('parser', 'html5lib')
 response = request_response(url, **kwargs)
 if (response is not None):
  return BeautifulSoup(response.content, parser)

def request_soup ( url , ** kwargs ) : parser = kwargs . pop ( 'parser' , 'html5lib' ) response = request_response ( url , ** kwargs ) if ( response is not None ) : return BeautifulSoup ( response . content , parser )
wrapper for request_response .