Download ip.sh from TuroLele/awk: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/spaces/TuroLele/awk/resolve/main/ip.sh
- Command line
-
hf download hf://spaces/TuroLele/awk/ip.sh
-
curl -L -o ip.sh https://huggingface.co/spaces/TuroLele/awk/resolve/main/ip.sh
361 Bytes
| IP_ADDRESS=$1 | |
| API_KEY="9dd714ba1364966e" # Ganti dengan API key Anda jika ada | |
| # Mendapatkan output JSON dari API | |
| output=$(curl -s "https://api.ipapi.is?q=${IP_ADDRESS}&key=${API_KEY}") | |
| # Menghapus baris yang mengandung "whois" | |
| filtered_output=$(echo "$output" | sed '/"whois":/d') | |
| # Menampilkan output yang sudah difilter | |
| echo "$filtered_output" |