Elektrine lite

← Feed

@algernon@come-from.mad-scientist.club

Post #3445582

2026-06-27 16:21 UTC

curl -s https://mullvad.net/en/servers \ | grep -A2 "kit\.start" \ | tail -n1 \ | sed -e "s,^\s*data: ,,g" \ -e "s,^.*data:{relays:,," \ -e 's#\([,{]\)\([a-zA-Z0-9_]*\):#\1"\2":#g' \ -e 's#},"uses":{}},null],$##' \ | jq -r '.[] | (.ipv4_addr_in + "\n" + .ipv6_addr_in)' Yippie! Into a cron job, and we're good to go.

Replies (1)

  • To make things easier, I'll put this into a CI job that runs once in a while, and publishes both the extracted JSON as-is, and the txt artifact with the IPs only. This way we won't all hammer the mullvad site badly enough to make them hide this page.

    Open ##3445581