#NEWLINE# def possible_author( self , node ) : #NEWLINE# #INDENT# goods = [ 'author' , 'by' , 'publi' , 'write' , 'written' , 'info' ] #NEWLINE# attr_values = node . attrib . values ( ) #NEWLINE# if any ( [ ( g in a ) for a in attr_values for g in goods ] ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# txt = get_text_and_tail ( node ) #NEWLINE# if re . search ( '\\b(author|by)[: ]' , txt ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False