镇魂街武神躯手游下载
《镇魂街:武神觉醒》是一款正版授权、热血横版格斗手游,将于5月19日开始全平台公测。游戏以畅爽的击打感、炸燃的特效和指尖的武神体验为特点,为玩家带来正统格斗的快乐。
时间:2018-09-27 14:14:14
发布者:yangjian
来源:当客下载站
以太猫挑选攻略
基本的概念不介绍了,gen越接近0,生育速度越快,属性稀有的猫越有价值。
https://api.cryptokitties.co/auctions?offset=20&limit=20&type=sale&status=open&parents=false
上面的网址是forsale猫的数据,写了个简陋的爬虫。
def meow(t,m,pr): #t冷却时间,m代数,pr价格
non_bmp_map = dict.fromkeys(range(0x10000, sys.maxunicode + 1), 0xfffd)
n=0
while n<10000:
try:
r=urllib.request.Request('https://api.cryptokitties.co/auctions?offset='+str(n)+'&limit=20&type=sale&status=open&parents=false')
response = urllib.request.urlopen(r,timeout=5)
r=json.loads(response.read().decode().translate(non_bmp_map))
cats=r['auctions']
if n%200==0:
print(n)
for i in cats:
st=i['kitty']
price=int(i['current_price'])/(10**18)
code=st['id']
gen=st['generation']
cooltime=st['status']['cooldown_index']
if cooltime<=t and gen<=m and price
print('id:',code,'price:',price,'gen:',gen,'cooltime:',cooltime)
n=n+20
time.sleep(1)
except Exception as e:
print(e)
搜索代数小于等于2,冷却swift,价格小于0.2ETH的喵。
meow(2,1,0.2)
0
id: 215800 price: 0.0979169459761111 gen: 2 cooltime: 1
id: 215294 price: 0.0958240941941667 gen: 2 cooltime: 1
200
400
600
id: 211672 price: 0.174966349243866 gen: 2 cooltime: 1
比如想买id211672的喵,url格式:https://www.cryptokitties.co/kitty/211672
这样就可以买到性价比高的喵了。
验这个思路继续下去,再加入稀有属性进一步筛选,更无聊的还可以爬出不同代数稀有属性的价格分布区间,根据偏差幅度决定是否购买再卖出,喵量化交易系统初具雏形,祝各位玩的愉快。
更多以太猫相关资讯请关注当客下载站。
热门教程 周 月
最新软件