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 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cryptocmd-0.4.3.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for cryptocmd-0.4.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d240dcd3eba3c8ce4c04deb5854cc9f3deadb20e6e7c58359b7ef77b22e47a5c |
|
MD5 | c49a4092ef7d6e48fdec216593d5c08e |
|
BLAKE2b-256 | cf4f50536cf762b85c909649ba713e733d30f8c846f23e63249dec65d4fdd377 |