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.
#!/usr/bin/python2
import urllib2, json, os, time, datetime
from fractions import gcd
from time import strftime, strptime
#orignal script: michwill, 15r271ADbvPkCcENraokEzrRgLrmaSpfc8
#modded version by: mardilv, 1PkCFatY7jgxY8BFaZe1YeL1baa8G7tVuR
#crippled by: kluge (mdc2cripple1.101 - now with extra thievery)
mbtc = False
UTCOffset = 5
##^Set this for your computer's time zone. "5" assumes you're on US Eastern time like me (UTC+5).
print "Waiting for first JSON update..."
wallet = u"1Ba11ooNy2b8EyPwW5F56mJnhauDK7va5Z"
mdc_checktime_interval = float(6)
ex_checktime_interval = float(5)
exchange = "btce_last"
mdc_json = "http://middlecoin2.s3-website-us-west-2.amazonaws.com/json"
def write(greeting, value, mode):
print " %s:\t%f BTC = $%f" % (greeting, value, c*value)
def f(x):
return "BTC-E Last"
runningFlag = True
mdc_checktime_counter = float(0)
ex_checktime_counter = float(0)
sleeptime = gcd(mdc_checktime_interval, ex_checktime_interval)
while runningFlag:
if mdc_checktime_counter <= 0:
response = urllib2.urlopen(mdc_json)
data = json.loads(response.read())
response.close()
mdc_checktime_counter = mdc_checktime_interval
if ex_checktime_counter <= 0:
response = urllib2.urlopen("https://btc-e.com/api/2/btc_usd/ticker")
btcticker = json.loads(response.read())
response.close()
btce_last = float(btcticker["ticker"]["last"])
btce_timestamp = int(btcticker["ticker"]["updated"])
ex_checktime_counter = ex_checktime_interval
if exchange == "btce_last":
c = btce_last
print (strftime("%m-%d-%Y %H:%M:%S",))
for i in data["report"]:
if i[0] == wallet:
break
my = i[1]
for k in my.keys():
my[k] = float(my[k])
write("Total paid ", my.get("paidOut", 0),mbtc)
write("Total unpaid", my.get("immatureBalance", 0) + my.get("unexchangedBalance", 0) + my.get("bitcoinBalance", 0), mbtc)
write("Exchanged ", my.get("bitcoinBalance", 0),mbtc)
write("Unxchg&Imm ",my.get("unexchangedBalance", 0) + my.get("immatureBalance", 0),mbtc)
print " BTC-e Last\t:\t$%f" % (btce_last)
print "Shares last hr\t:\t%.0f" % (my["lastHourShares"])
print (" Hashrate :\t%s KH/s" % (my.get("megahashesPerSecond")* 1000))
print " Rejected : \t%.1f%%" % (my.get("rejectedMegahashesPerSecond", 0) / my["megahashesPerSecond"]* 100)
locNow = datetime.datetime.now()
servTime = datetime.datetime.strptime(data["time"], '%Y-%m-%d %H:%M:%S')
diffMin = -int(((servTime - locNow).total_seconds() - UTCOffset * 3600) / 60)
print "Time since JSON update:", diffMin, "minutes"
mdc_checktime_counter -= sleeptime
ex_checktime_counter -= sleeptime
time.sleep(sleeptime*60)