加密货币历史市场价格数据报废器。

cryptocmd的Python项目详细描述


https://img.shields.io/pypi/v/cryptoCMD.svghttps://travis-ci.org/guptarohit/cryptoCMD.svg?branch=masterFOSSA Statushttps://img.shields.io/pypi/l/cryptoCMD.svghttps://img.shields.io/pypi/pyversions/cryptoCMD.svgDownloadsCode style: black

用python编写的加密货币历史市场价格数据刮刀。

安装

$ pip install cryptocmd

要从最新的源安装,请使用以下命令

$ pip install git+git://github.com/guptarohit/cryptoCMD.git

用法

coinmarketcap scraper

以下方法可用于从https://coinmarketcap.com获取多种格式的数据

获取加密货币

的所有历史数据
fromcryptocmdimportCmcScraper# initialise scraper without time intervalscraper=CmcScraper("XRP")# get raw data as list of listheaders,data=scraper.get_data()# get data in a json formatxrp_json_data=scraper.get_data("json")# export the data as csv file, you can also pass optional `name` parameterscraper.export("csv",name="xrp_all_time")# Pandas dataFrame for the same datadf=scraper.get_dataframe()

获取加密货币数天的数据

fromcryptocmdimportCmcScraper# initialise scraper with time intervalscraper=CmcScraper("XRP","15-10-2017","25-10-2017")# get raw data as list of listheaders,data=scraper.get_data()# get data in a json formatjson_data=scraper.get_data("json")# export the data to csvscraper.export("csv")# get dataframe for the datadf=scraper.get_dataframe()

以下是数据列

Date, Open, High, Low, Close, Volume, Market Cap

致谢

数据正在从coinmarketcap:v:中废弃,使用的是free。:tada:

贡献

请随意提出请求!:章鱼:

许可证

FOSSA Status

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何在jetty请求日志中添加milliscond字段?   java在使用Scanner类从文件读取信息时遇到问题   为什么。类不适用于泛型类型?   SQLite插入上的java空指针异常   java能告诉我们Guava缓存是在禁用统计数据的情况下构建的吗?   java在应用程序中使用常量   java无法使用AutoIT和Selenium Webdriver在所需位置/文件夹保存图像   java如何在jtable中更新jprogress栏   java是比较给定日期和当前日期(在给定时区中没有时间段)的最佳方法   安卓代码中的java错误   java无法访问实体类中的字段   java如何在tomcat中处理三个JDBC连接池?   java无法使用Spring Security保护AngularJS页面   如何在没有TCP/IP协议栈的情况下用Java发送以太帧