-
Hi, good job! I look on https://ipinfo.io and if you try
curl https://ipinfo.io/$IP/geo
you get JSON data back. Therefore you can try usejq
and try somthing like thisARR1=($(curl -s https://ipinfo.io/1.1.1.1/geo | jq '.[]')); CITY="${ARR1[1]//\"/}"
etc
Please register or sign in to comment