Created
January 17, 2022 16:31
-
-
Save Manouchehri/44a6b9221287bb38c5deaff6997c5c1e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
#-*- coding: utf-8 -*- | |
import json | |
with open( "RIPE-Atlas-measurement-32396390.json" , "r" ) as myopen: | |
measurements = json.load(myopen) | |
good_measurements = [] | |
for measurement in measurements: | |
if measurement['prb_id'] == 6266: | |
good_measurements.append(measurement) | |
with open('measurements_filtered.json', 'w') as f: | |
json.dump(good_measurements, f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment