comparison bin/test_warc.py @ 65:b88fdbe8bfa7

add a response-only test
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 19 Jul 2023 13:19:58 +0100
parents 9837840f3328
children
comparison
equal deleted inserted replaced
64:b14187ccfb46 65:b88fdbe8bfa7
27 warc.warc(sys.argv[1],showme,[b'warcinfo'],parts=int(sys.argv[2]),debug=debug) 27 warc.warc(sys.argv[1],showme,[b'warcinfo'],parts=int(sys.argv[2]),debug=debug)
28 elif tt==3: 28 elif tt==3:
29 warc.warc(sys.argv[1],showme,[b'warcinfo'],whole=True,debug=debug) 29 warc.warc(sys.argv[1],showme,[b'warcinfo'],whole=True,debug=debug)
30 elif tt==4: 30 elif tt==4:
31 warc.warc(sys.argv[1],showme,[b'response','warcinfo','request','metadata'],whole=True,debug=debug) 31 warc.warc(sys.argv[1],showme,[b'response','warcinfo','request','metadata'],whole=True,debug=debug)
32 elif tt==5:
33 warc.warc(sys.argv[1],showme,[b'response'],parts=int(sys.argv[2]),debug=debug)