Skip to main content

Cryptocurrency historical market price data scrapper.

Project description

https://img.shields.io/badge/Made%20with-Python-1f425f.svg https://img.shields.io/pypi/v/cryptoCMD.svg https://travis-ci.org/guptarohit/cryptoCMD.svg?branch=master FOSSA Status https://img.shields.io/pypi/l/cryptoCMD.svg https://img.shields.io/pypi/pyversions/cryptoCMD.svg HitCount

Cryptocurrency historical market price data scraper written in Python.

Installation

$ pip install cryptocmd

to install from the latest source use following command

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

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 as csv file, you can also pass optional 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

Acknowledgements

The data is being scrapped from coinmarketcap :v: and it’s free to use. :tada:

Contributing

Feel free to make a pull request! :octocat:

License

FOSSA Status

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cryptocmd-0.4.1-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cryptocmd-0.4.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cryptocmd-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0a0ac11aa0c4d133e6652e2af2a18c0a4949b15a87ca141cae282cd7d176e802
MD5 01b6f76d1e89a42910cf93ee70cf8b4a
BLAKE2b-256 7aeffcd548a0d515883bac7deafd5df6249ed4b695aea3d54c3cfb2def4a7f32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page