#NEWLINE# def href( self , partialurl = None , eager = False , timeout = None ) : #NEWLINE# #INDENT# if partialurl : #NEWLINE# #INDENT# return self . xpath ( ".//a[contains(@href, '{0}')]" . format ( partialurl ) , eager , self ) #NEWLINE# #UNINDENT# return self . xpath ( './/a' , eager , timeout )