#NEWLINE# def handle_endtag( self , tag ) : #NEWLINE# #INDENT# if ( tag == 'div' ) : #NEWLINE# #INDENT# self . inside_div = False #NEWLINE# self . inside_span = 0 #NEWLINE# self . got_data = False #NEWLINE# self . failed = False #NEWLINE# #UNINDENT# if ( tag == 'li' ) : #NEWLINE# #INDENT# self . inside_li = False