def browse(self):
offset = <NUM_LIT:0><EOL>for record in self.reader:<EOL><INDENT>record.payload = StringIO(record.payload.read(<NUM_LIT>*<NUM_LIT>))<EOL>self.reader.finish_reading_current_record()<EOL>next_offset = self.tell()<EOL>yield record, offset, next_offset-offset<EOL>offset = next_offset<EOL><DEDENT>
Utility to browse through the records in the warc file.

        This returns an iterator over (record, offset, size) for each record in 
        the file. If the file is gzip compressed, the offset and size will 
        corresponds to the compressed file. 

        The payload of each record is limited to 1MB to keep memory consumption 
        under control.