Cryptocurrency historical market price data scrapper.
Project description
Cryptocurrency historical market price data scraper written in Python.
Installation
$ pip install cryptocmd
to install from the latest source use following command
$ pip install -U 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
Contributing
Feel free to make a pull request!
Project details
Release history Release notifications
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size cryptocmd-0.2.1-py2.py3-none-any.whl (7.2 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View hashes |
Filename, size cryptocmd-0.2.1.tar.gz (6.0 kB) | File type Source | Python version None | Upload date | Hashes View hashes |
Close
Hashes for cryptocmd-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb825870b6ed27f7731d1e2c6adb391c5dc0ba93dab56fc342c52d8e9ea5fb5a |
|
MD5 | e539f0f7fc3ec7fad6a1dbf82603c794 |
|
BLAKE2-256 | 5817afc019910ce08eb3db273eb583c8e86e4025541c0b33132dbc62f1fb3d67 |