Make print lines for isv2
This commit is contained in:
parent
c79eaed7c3
commit
e56a4ba955
|
@ -39,16 +39,17 @@ while True:
|
||||||
isHSDir = True
|
isHSDir = True
|
||||||
line2 = consensus.readline()
|
line2 = consensus.readline()
|
||||||
if re.search("^v Tor 0\.(4\.[6-9]|3\.5\.(17|18)|4\.5\.(11|12|13|14))", line2, re.IGNORECASE):
|
if re.search("^v Tor 0\.(4\.[6-9]|3\.5\.(17|18)|4\.5\.(11|12|13|14))", line2, re.IGNORECASE):
|
||||||
|
#print(line1 + " " + line2 + " non")
|
||||||
if isHSDir:
|
if isHSDir:
|
||||||
numberOfNonv2HSDir += 1
|
numberOfNonv2HSDir += 1
|
||||||
numberOfNonv2 += 1
|
numberOfNonv2 += 1
|
||||||
else:
|
else:
|
||||||
|
#print(line1 + " " + line2 + " v2")
|
||||||
if isHSDir:
|
if isHSDir:
|
||||||
numberOfv2HSDir += 1
|
numberOfv2HSDir += 1
|
||||||
numberOfv2 += 1
|
numberOfv2 += 1
|
||||||
for _ in range(3):
|
for _ in range(3):
|
||||||
next(consensus)
|
next(consensus)
|
||||||
print(line1 + " " + line2 + " " + str(isHSDir))
|
|
||||||
|
|
||||||
dt = datetime.datetime.utcnow().strftime("%Y/%m/%d %H")
|
dt = datetime.datetime.utcnow().strftime("%Y/%m/%d %H")
|
||||||
with open("trackingv2.csv", "a") as csvFile:
|
with open("trackingv2.csv", "a") as csvFile:
|
||||||
|
|
Loading…
Reference in a new issue