Mercurial > hg > cc > azure
view master/src/wecu/mapper.py @ 68:1f04bce6ead7 default tip
use basefile instead of transferfile, and remove cleanup: belt and braces wrt lossage of sac_schemes.py in 15% of 1000_k3,
this as used in a_2
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Thu, 04 Jun 2020 20:44:44 +0000 |
parents | a3edba8dab11 |
children |
line wrap: on
line source
#!/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))