Elektrine lite

← Feed

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

Post #3445583

2026-06-27 16:07 UTC

Buuuut it looks like the server list is in the HTML. It's just the rendering that's done in JS. So I can grab the page, sed out the JSON, and process it as I see fit.

Replies (1)

  • 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.

    Open ##3445582