#NEWLINE# def get_elements_from_file( url , element = 'table' ) : #NEWLINE# #INDENT# _skip_if_none_of ( ( 'bs4' , 'html5lib' ) ) #NEWLINE# url = file_path_to_url ( url ) #NEWLINE# from bs4 import BeautifulSoup #NEWLINE# with urlopen ( url ) as f : #NEWLINE# #INDENT# soup = BeautifulSoup ( url , features = 'html5lib' ) #NEWLINE# #UNINDENT# return soup . find_all ( element )