Advertisement
sxiii

Getting mining pool lists

Feb 14th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.82 KB | None | 0 0
  1. # Getting mining pool list from cryptocompare (only local links)
  2. curl -s https://www.cryptocompare.com/mining/#/pools | tr -s '\"' '\n' | grep mining/pools
  3. # Getting mining pool remote links from cryptocompare
  4. url=https://www.cryptocompare.com; curl -s $url/mining/#/pools | tr -s '\"' '\n' | grep 'mining/pools' | while read line; do curl -s $url$line | grep btn-website | awk -F\" '{print $4}' ; ((x++)) ; echo $x; done
  5. # Getting mining pool links, stripping them and loading whois country information
  6. url=https://www.cryptocompare.com; curl -s $url/mining/#/pools | tr -s '\"' '\n' | grep 'mining/pools' | while read line; do url2=$(curl -s $url$line | grep btn-website | awk -F\" '{print $4}' | sed 's/https\?:\/\///' | awk -F/ '{ print $1 }'); echo $url2 | tr '\n' ','; whois $url2 | grep Country | tr '\n' ','; ((x++)); echo $x; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement