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 @@ ...@@ -2,6 +2,8 @@
This is a collection of scripts for performing automatic reachability tests of Snowflake and obfs4. 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 ### Setup
......
...@@ -14,9 +14,10 @@ locale.setlocale(locale.LC_ALL, "C") ...@@ -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+)%') 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 = csv.DictWriter(sys.stdout, fieldnames=("timestamp", "site", "runid", "nickname", "percent"))
csvW.writeheader() #csvW.writeheader()
def process_log(f, site, runid, nickname): def process_log(f, site, runid, nickname):
row = None
for line in f: for line in f:
m = bootstrapped_re.match(line) m = bootstrapped_re.match(line)
if m is not None: if m is not None:
...@@ -33,7 +34,7 @@ def process_log(f, site, runid, nickname): ...@@ -33,7 +34,7 @@ def process_log(f, site, runid, nickname):
"nickname": nickname, "nickname": nickname,
"percent": percent, "percent": percent,
} }
csvW.writerow(row) csvW.writerow(row)
for filename in sys.stdin: for filename in sys.stdin:
filename = filename.strip() filename = filename.strip()
......
Supports Markdown
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