comparison master/src/wecu/mapper.py @ 58:a3edba8dab11

move to right place in tree
author Henry S. Thompson <ht@markup.co.uk>
date Thu, 28 May 2020 09:56:42 +0000
parents master/wecu/mapper.py@ac1a20e627a9
children
comparison
equal deleted inserted replaced
57:ac1a20e627a9 58:a3edba8dab11
1 #!/usr/bin/python
2
3 import sys
4
5 response_counter = 0
6 request_counter = 0
7
8 for line in sys.stdin:
9 if line.startswith('WARC-Type: response'):
10 response_counter += 1
11 if line.startswith('WARC-Type: request'):
12 request_counter += 1
13
14 print('request_counter\t{}'.format(request_counter))
15 print('response_counter\t{}'.format(response_counter))
16