#NEWLINE# def get_all_paragraphs_as_list( url ) : #NEWLINE# #INDENT# links = [ ] #NEWLINE# page = download_page ( url ) #NEWLINE# while True : #NEWLINE# #INDENT# ( link , end_link ) = get_next_paragraph ( page ) #NEWLINE# link = link . replace ( '\n' , ' ' ) #NEWLINE# link = re . sub ( '<.+?>' , '' , link ) #NEWLINE# if ( link == 'no_links' ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# links . append ( link ) #NEWLINE# page = page [ end_link : ] #NEWLINE# #UNINDENT# #UNINDENT# return links