#NEWLINE# @ property #NEWLINE# def links( self ) : #NEWLINE# #INDENT# 'Yields all links in the page' #NEWLINE# for anchor in self . parsed . findall ( './/a' ) : #NEWLINE# #INDENT# if anchor . get ( 'href' ) : #NEWLINE# #INDENT# href = anchor . get ( 'href' ) #NEWLINE# url = self . clean_link ( urllib_parse . urljoin ( self . base_url , href ) ) #NEWLINE# ( yield Link ( url , self ) )