Commit 3e77aa65 authored by Cecylia Bocovich's avatar Cecylia Bocovich
Browse files

Update docs and analysis for continuously updated dataset

parent 7727ea7d
......@@ -2,6 +2,8 @@
This is a collection of scripts for performing automatic reachability tests of Snowflake and obfs4.
Datasets from multiple probe points are published by us at: https://people.torproject.org/~cohosh/bootstrap.csv
### Setup
......
......@@ -14,9 +14,10 @@ locale.setlocale(locale.LC_ALL, "C")
bootstrapped_re = re.compile(r'^(\w+ \d+ \d\d:\d\d:\d\d\.\d\d\d) \[\w+\] Bootstrapped (\d+)%')
csvW = csv.DictWriter(sys.stdout, fieldnames=("timestamp", "site", "runid", "nickname", "percent"))
csvW.writeheader()
#csvW.writeheader()
def process_log(f, site, runid, nickname):
row = None
for line in f:
m = bootstrapped_re.match(line)
if m is not None:
......@@ -33,7 +34,7 @@ def process_log(f, site, runid, nickname):
"nickname": nickname,
"percent": percent,
}
csvW.writerow(row)
csvW.writerow(row)
for filename in sys.stdin:
filename = filename.strip()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment