【发布时间】:2021-08-28 00:23:31
【问题描述】:
尝试运行
import blockchain
from blockchain import statistics
get_chart(chart_type="mempool-size", time_span="1year")
尽管get_chart 已在statistics.py 文件中为blockchain.info 客户端定义,但仍给出函数未定义错误。如何运行get_chart 函数?
有没有人有任何故障排除的想法?问题已经提出了几天,我被困住了。我检查了 GitHub 存储库中的问题,但找不到任何问题,还没有尝试任何其他方法,因为我不确定从哪里开始。
我对任何可以从 https://blockchain.info 获取图表数据的 python 解决方案都很满意
【问题讨论】:
-
尝试将其称为
statistics.get_chart(chart_type="mempool-size", time_span="1year"),它应该可以工作。或者,您可以以from blockchain.statistics import get_chart的身份进行导入,然后按原样保持通话。
标签: python blockchain.info-api