-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfetch
More file actions
executable file
·29 lines (25 loc) · 725 Bytes
/
fetch
File metadata and controls
executable file
·29 lines (25 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
f="$1"
case "$f" in
s5tg-02-repeat-*) msm="16226108" ;;
s5tg-02-tail-*) msm="16232577" ;;
s5tg-03-repeat-*) msm="16226112" ;;
s5tg-03-tail-*) msm="16232503" ;;
s5tg-04-repeat-*) msm="16232679" ;;
s5tg-04-tail-*) msm="16251837" ;;
s5tg-05-repeat-*) msm="16237376" ;;
s5tg-05-tail-*) msm="16251876" ;;
*)
echo "Bad fname: $f" 1>&2
exit 1
;;
esac
case "$f" in
s5tg-*-20.jsonl) ts="start=1537401600&stop=1537487999" ;;
s5tg-*-21.jsonl) ts="start=1537488000&stop=1537574399" ;;
*)
echo "Bad fname: $f" 1>&2
exit 1
;;
esac
exec wget -O "$f" "https://atlas.ripe.net/api/v2/measurements/${msm}/results/?${ts}&format=txt"