summaryrefslogtreecommitdiffstats
path: root/gold/scoreboard/modules/available/btcguild/btcguild_stats_self
blob: 9cb65590b844ba72fd4e102452381b5135cb3e26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/python2
import simplejson,urllib,datetime,sys
url="http://www.btcguild.com/api.php?api_key="+sys.env['BTCGUILD_APIKEY']
f = open('/home/makefu/log/btcguild_stats_self',mode='a')
today = datetime.datetime.now()

#result = simplejson.load(urllib.urlopen(url))
#print >>f, today.strftime("%Y-%m-%dT%H:%M:%S"),

# TODO do the right thing with the data (aka this loop is wrong, fixme
#for k,v in result.iteritems():
#    data = '%s' % v
#    data = data.replace('.','')
#    print >>f ,data,
#print >>f