Joker0day

Fetch wallet data

Dec 30th, 2020 (edited)
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. #! /bin/bash
  2. # Last edited on 2014-12-02 18:25:30 by Joker0day
  3.  
  4. fetchdate="$1"; shift  # Approx current date, since the pages change with time.
  5. wallet="$1"; shift     # Wallet name, as assigned by "www.walletexplorer.com".
  6. lopage="$1"; shift     # Number of first page to fetch.
  7. hipage="$1"; shift     # Number of last page to fetch.
  8.  
  9. urldir="http://www.walletexplorer.com/wallet/${wallet}"
  10. outdir="raw/${wallet}/${fetchdate}"
  11. mkdir -p ${outdir}
  12.  
  13. for n in `seq -f '%04.0f' ${lopage} ${hipage}` ; do
  14.   wget -nv "${urldir}?page=${n}" -O "${outdir}/${n}.html"
  15.   sleep 5
  16. done
  17.  
Add Comment
Please, Sign In to add comment