Skip to content

Instantly share code, notes, and snippets.

@ZackStone
Created May 24, 2019 13:36
Show Gist options
  • Save ZackStone/0e3ed824f50c38f62b889c38dd365d30 to your computer and use it in GitHub Desktop.
Save ZackStone/0e3ed824f50c38f62b889c38dd365d30 to your computer and use it in GitHub Desktop.
OUTFILE=output_$(date +"%Y-%m-%d_%H-%m-%S").json
while read PROXY; do
IP=$(curl -x $PROXY -s https://api.ipstack.com/check?access_key={enter_your_ipstack_access_key_here})
echo $IP >> $OUTFILE
printf "\n" >> $OUTFILE
done <proxies.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment