Mercurial > hg > cc > azure
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/master/src/wecu/mapper.py Thu May 28 09:56:42 2020 +0000 @@ -0,0 +1,16 @@ +#!/usr/bin/python + +import sys + +response_counter = 0 +request_counter = 0 + +for line in sys.stdin: + if line.startswith('WARC-Type: response'): + response_counter += 1 + if line.startswith('WARC-Type: request'): + request_counter += 1 + +print('request_counter\t{}'.format(request_counter)) +print('response_counter\t{}'.format(response_counter)) +