소스 검색

Add WARC/1.1 support

master
JustAnotherArchivist 3 년 전
부모
커밋
a83d28d08e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      warc-peek

+ 1
- 1
warc-peek 파일 보기

@@ -48,7 +48,7 @@ def find_offsets(warcfile, offset, length):
except:
continue
logger.debug('First 100 bytes of decompressed data: {!r}'.format(dec[:100]))
if dec.startswith(b'WARC/1.0\r\n'):
if dec.startswith(b'WARC/1.0\r\n') or dec.startswith(b'WARC/1.1\r\n'):
yield offset + pos




불러오는 중...
취소
저장