Browse Source

Add support for reading from stdin

master
JustAnotherArchivist 2 years ago
parent
commit
fe0b020352
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      warc-tiny

+ 2
- 0
warc-tiny View File

@@ -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…
Cancel
Save