Skip to content

Instantly share code, notes, and snippets.

@Magicking
Created September 11, 2015 08:31
Show Gist options
  • Save Magicking/6d39b91f40e3174d8e86 to your computer and use it in GitHub Desktop.
Save Magicking/6d39b91f40e3174d8e86 to your computer and use it in GitHub Desktop.
#!/bin/sh
URL='https://www.reddit.com/r/neucoin/comments/3k57cx/beta_addresses/'
HDRS='' #removed
LST_DONE='lst_done.txt'
touch "$LST_DONE"
curl $HDRS -s "$URL" | grep -o 'N\w\{26,35\}' | sort | uniq | while read addr;
do
echo -n $addr | python check.py
if [ $? -eq 0 ]; then
grep -q -F "$addr" "$LST_DONE"
if [ $? -ne 0 ]; then
neucoind sendtoaddress "$addr" 42
echo "$addr" >> "$LST_DONE"
fi
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment