#NEWLINE# def get( url , verify = True ) : #NEWLINE# #INDENT# '\n    Retrieves HTML from the provided URL.\n    ' #NEWLINE# logger . debug ( ( 'Requesting %s' % html ) ) #NEWLINE# response = requests . get ( url ) #NEWLINE# html = response . text #NEWLINE# if ( verify and ( 'html' not in response . headers [ 'content-type' ] ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Response does not have an HTML content-type' ) #NEWLINE# #UNINDENT# return html