Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Cryptocurrency historical market price data scrapper.

Project description

Cryptocurrency historical market price data scraper written in Python.

Usage

CoinMarketCap Scraper

Following methods are available to get data in multiple formats from https://coinmarketcap.com

To get all time historical data of a cryptocurrency

from cryptocmd import CmcScraper

# initialise scraper without passing time interval
scraper = CmcScraper('XRP')

# data as list of list in a variable
headers, data = scraper.get_data()

# export the data to csv, can also paas option name parameter
scraper.export_csv('xrp_all_time.csv')

# Pandas dataFrame for the same data
df = scraper.get_dataframe()

To get data of a cryptocurrency for some days

from cryptocmd import CmcScraper

# initialise scraper
scraper = CmcScraper('XRP', '15-10-2017', '25-10-2017')

# get data as list of list
headers, data = scraper.get_data()

# export the data to csv
scraper.export_csv()

# get dataframe for the data
df = scraper.get_dataframe()

Following are the columns of the data

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

Installation

$ pip install cryptocmd

to install from the latest source use following command

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

Contributing

Feel free to make a pull request!

Project details


Release history Release notifications

History Node

0.4.1

History Node

0.4.0

History Node

0.3.2

History Node

0.3.0

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

This version
History Node

0.2.0

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
cryptocmd-0.2.0-py2.py3-none-any.whl (7.3 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Jan 29, 2018
cryptocmd-0.2.0.tar.gz (6.1 kB) Copy SHA256 hash SHA256 Source None Jan 29, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page