It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
import urllib
import json
URL = "https://blockchain.info/address/%s?format=json"
ONE = 100000000
FIVE = 500000000
TEN = 1000000000
TWENTY = 2000000000
addresses = ['1FhTe1bMtoKHDbNw13v3BQ9sb2kFTagaRH']
processed = []
addr1 = []
addr5 = []
addr10 = []
addr20 = []
print "Searching for all BitBills..."
while addresses:
a = addresses.pop(0)
print "processing %s" % a
processed.append(a)
file = urllib.urlopen(URL % a).read()
data = json.loads(file)
for tx in data['txs']:
skip = True
for input in tx['inputs']:
if input['prev_out']['addr'] == a:
skip = False
if skip:
continue
for out in tx['out']:
addr = out['addr']
value = out['value']
if value < ONE:
continue
if value == ONE:
if not addr in addr1:
addr1.append(addr)
elif value == FIVE:
if not addr in addr5:
addr5.append(addr)
elif value == TEN:
if not addr in addr10:
addr10.append(addr)
elif value == TWENTY:
if not addr in addr20:
addr20.append(addr)
elif not addr in processed and not addr in addresses:
addresses.append(addr)
def process_address(addr, denom):
intact = 0
for a in addr:
# print "checking %s" % a
processed.append(a)
file = urllib.urlopen(URL % a).read()
data = json.loads(file)
if data['total_sent'] == 0:
# print "intact %s" % a
intact+=1
print "%dBTC: %d (%d intact)" % (denom, len(addr), intact)
print "Checking coins..."
process_address(addr20, 20)
process_address(addr10, 10)
process_address(addr5, 5)
process_address(addr1, 1)