소스 검색

Add support for reading from stdin

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

+ 2
- 0
warc-tiny 파일 보기

@@ -528,6 +528,8 @@ def main():
for f in files:
print('Info: processing {}'.format(f), file = sys.stderr)
processor.process_event(NewFile(f))
if f == '-':
f = sys.stdin.buffer
for event in iter_warc(f):
processor.process_event(event)
except BrokenPipeError:


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