瀏覽代碼

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:


Loading…
取消
儲存