矿池数据分析:python实现矿工管理及其数据统计

I am glad to share a python script today  about the statistics and downloads of the workers who are  working(prefer to say making money )with populor protocal stratum  for digit currency in the main domestic  website  such as f2pool.com.

很高兴今天分享一个关于统计和下载矿工数据的python脚本, 针对国内主流矿池的数据做分析, 挖矿的协议也是主流协议stratum

As we can see, there is an enter URL for these main pools "api.xxx.com"and it can download the very initial source that we can probably count on.Because of that, we have the opportunity to try to analyze the data downloaded from website and have some ideas probably about our next code.

我们可以根据一个URL下载和分析数据,然后根据它来写脚本.

The following is the raw source downloaded from web. It is totally JSON format ,and, from the key like 'workers' in it, a coding plan may be seems easy.

下面是从网站下载的JSON格式的数据,键值workers可以让我们找到矿工的具体信息.

'value_today': 30827.63090590282, 'worker_length': 15, 'worker_length_online': 15, 'workers': [['number1100700', 0, 0, 0, 0, 0, '2021-01-05T07:50:43.657884Z', False, 0], ['number1100701', 4222124650659, 7505999378950, 187649984473, 587156801418428416, 5348024557502464, '2021-01-06T09:04:52.714875Z', False, 0],

We  download and print the raw workers' data like this:

我们可以像这样下载和打印矿工数据:

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值