This script scrapes data from the historical data tab on coinmarketcap.com
$ git clone https://github.com/dylankilkenny/CoinMarketCap-Historical-Prices.git
$ cd CoinMarketCap-Historical-Prices
$ pip3 install -r requirements.txt
$ python install_locally.py
To run the script and gather data for all listed cryptocurrencys on coinmarketcap you need to pass the start date and end date in YYYYMMDD format
$ python3 crypto_history.py 20170101 20180201
you can also specify a cryptocurrency with a third argument
$ python3 crypto_history.py 20170101 20180201 ethereum
The data will be saved to a CSV file
Python 3.6.4 (default, Jan 5 2018, 02:35:40)
[GCC 7.2.1 20171224] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from crypto_history import gather
>>> gather('20170101', '20170102', ['ethereum'])
(['Coin', 'Date', 'Open', 'High', 'Low', 'Close', 'Volume', 'Market Cap'], [[], ['ethereum', 'Jan 02, 2017', '8.17', '8.44', '8.05', '8.38', '14,579,600', '714,900,000'], ['ethereum', 'Jan 01, 2017', '7.98', '8.47', '7.98', '8.17', '14,731,700', '698,149,000']])