Browse Source

bbescraper

pull/1/head
Jeffrey Paul 9 years ago
parent
commit
5262aa7d3b
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      bitcoin.bbescraper/fetch.sh

+ 18
- 0
bitcoin.bbescraper/fetch.sh View File

@@ -0,0 +1,18 @@
#!/bin/bash

# don't actually use this, it hammers the server unnecessarily.
# use jgarzik's getblock patch @
# http://gtf.org/garzik/bitcoin/patch.bitcoin-getblock

exit 1

x=1

while true; do
B=`wget -O - http://blockexplorer.com/b/$x | grep keywor | \
awk -F, '{print $6}' | tr -d "\"> "`
if [ ! -e $x.json ]; then
wget -O $x.json http://blockexplorer.com/rawblock/$B
fi
x=$(( $x + 1 ))
done

Loading…
Cancel
Save