Open voltagex opened 2 years ago
This is by design. I agree that this isn't obvious and that we can improve the documentation and runtime error messages for this case.
What you should do instead is do the capture to a file, and once that's done, read that file.
Thanks @wumpus, should I leave this open as a documentation bug in that case?
Yes, please leave it open, this is not the only place where we have a lack of clarity about streaming vs files.
I'm using Python 3.10.4 and warcio 1.7.4
Using a piece of code based on https://github.com/webrecorder/warcio#writing-warc-records, I'm getting
I narrowed this down to specifying a filename in the writer object - if I don't do this, the get_stream method exists