Skip to content

Instantly share code, notes, and snippets.

@Manouchehri
Created January 17, 2022 16:31
Show Gist options
  • Save Manouchehri/44a6b9221287bb38c5deaff6997c5c1e to your computer and use it in GitHub Desktop.
Save Manouchehri/44a6b9221287bb38c5deaff6997c5c1e to your computer and use it in GitHub Desktop.
#!/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