On Thu, Apr 22, 2021 at 02:20:20PM +0200,
Stephane Bortzmeyer <[email protected]> wrote
a message of 15 lines which said:
> I'm afraid you'll have to download the raw JSON file
> <https://ftp.ripe.net/ripe/atlas/measurements/>, parse it yourself and
> filter according to the "probes" array.
The small Python program attached gives an example.
% ./read.py meta-20210421.txt 50005
...
Measurement 29755186 uses the probe 50005
Measurement 29755187 uses the probe 50005
Measurement 29755701 uses the probe 50005
Measurement 29755702 uses the probe 50005
Measurement 29755704 uses the probe 50005
Measurement 29756177 uses the probe 50005
Measurement 29756178 uses the probe 50005
...
#!/usr/bin/python3
import json
import sys
filename = sys.argv[1]
probe = sys.argv[2]
f = open(filename)
for line in f.readlines():
data = json.loads(line)
mid = data["msm_id"]
for p in data["probes"]:
if str(p["id"]) == probe:
print("Measurement %s uses the probe %s" % (mid, probe))