#NEWLINE# @ cached_property #NEWLINE# def base_url( self ) : #NEWLINE# #INDENT# bases = [ x for x in self . parsed . findall ( './/base' ) if ( x . get ( 'href' ) is not None ) ] #NEWLINE# if ( bases and bases [ 0 ] . get ( 'href' ) ) : #NEWLINE# #INDENT# return bases [ 0 ] . get ( 'href' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . url