def push(self):
        """This returns all currently processed data and empties the output buffer."""
        data = self.outfile
        self.outfile = ''
        return data
This returns all currently processed data and empties the output buffer.
recipes/Python/286269_HTML_Scraper/recipe-286269.py