File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 9
9
import base64
10
10
11
11
import re
12
+ import sys
12
13
13
14
try : # pragma: no cover
14
15
from collections import OrderedDict
Original file line number Diff line number Diff line change 25
25
org,iana)/domains/example 20140128051539 http://www.iana.org/domains/example text/html 302 JZ622UA23G5ZU6Y3XAKH4LINONUEICEG - - 854 4771 example.warc
26
26
27
27
# warc all
28
+ # note: length of request record set to 1 byte less then record to test truncation handling
28
29
>>> print_cdx_index('example.warc', include_all=True)
29
30
CDX N b a m s k r M S V g
30
31
com,example)/?example=1 20140103030321 http://example.com?example=1 text/html 200 B2LTWWPUOYAH7UIPQ7ZUPQ4VMBSVC36A - - 1987 460 example.warc
31
32
com,example)/?example=1 20140103030321 http://example.com?example=1 - - - - - 706 2451 example.warc
32
33
com,example)/?example=1 20140103030341 http://example.com?example=1 warc/revisit - B2LTWWPUOYAH7UIPQ7ZUPQ4VMBSVC36A - - 896 3161 example.warc
33
- com,example)/?example=1 20140103030341 http://example.com?example=1 - - - - - 706 4061 example.warc
34
+ com,example)/?example=1 20140103030341 http://example.com?example=1 - - - - - 703 4061 example.warc
34
35
org,iana)/domains/example 20140128051539 http://www.iana.org/domains/example text/html 302 JZ622UA23G5ZU6Y3XAKH4LINONUEICEG - - 854 4771 example.warc
35
36
36
37
# arc.gz
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ WARC/1.0
140
140
WARC-Type: request
141
141
WARC-Record-ID: <urn:uuid:c59f3330-b241-4fca-8513-d687cd85bcfb>
142
142
WARC-Date: 2014-01-03T03:03:41Z
143
- Content-Length: 323
143
+ Content-Length: 320
144
144
Content-Type: application/http; msgtype=request
145
145
WARC-Concurrent-To: <urn:uuid:3619f5b0-d967-44be-8f24-762098d427c4>
146
146
WARC-Target-URI: http://example.com?example=1
You can’t perform that action at this time.
0 commit comments