#NEWLINE# @ staticmethod #NEWLINE# def __html_find_base( document ) : #NEWLINE# #INDENT# '\n        :type document: BeautifulSoup\n        :rtype: str | None\n        ' #NEWLINE# base_uri = None #NEWLINE# base_tag = document . find ( 'base' , { #NEWLINE# #INDENT# 'href' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# if base_tag : #NEWLINE# #INDENT# base_uri = base_tag [ 'href' ] #NEWLINE# #UNINDENT# return base_uri