Make print lines for isv2

This commit is contained in:
HackerNCoder 2022-09-23 22:42:46 +02:00
parent c79eaed7c3
commit e56a4ba955

View file

@ -39,16 +39,17 @@ while True:
isHSDir = True
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):
#print(line1 + " " + line2 + " non")
if isHSDir:
numberOfNonv2HSDir += 1
numberOfNonv2 += 1
else:
#print(line1 + " " + line2 + " v2")
if isHSDir:
numberOfv2HSDir += 1
numberOfv2 += 1
for _ in range(3):
next(consensus)
print(line1 + " " + line2 + " " + str(isHSDir))
dt = datetime.datetime.utcnow().strftime("%Y/%m/%d %H")
with open("trackingv2.csv", "a") as csvFile: