Element.save# Element.save(outfile, close_file=True, **kwargs)# Saves an Element into a file. Parameters: outfile (str or file object) – The file (or filename) where you want to output the html. close_file (bool, default True) – Whether the file has to be closed after write.