This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Saving htmls from wunderground.com, and scraping them for monthly history. | |
| Packages needed: | |
| pip install wunderground_req.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import json | |
| start = '2010-07-17' | |
| end = '2017-03-31' | |
| charts = ['bitbay', 'bitkonan', 'bitstamp', 'hitbtc', 'itbit', 'kraken', 'localbtc', 'rock'] | |
| for chart in charts: | |
| url = 'https://bitcoincharts.com/charts/chart.json?m={}USD&SubmitButton=Draw&r=60&i=24-hour&c=1&s={}&e={}'.format(chart, start, end) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import json | |
| start = '2010-07-17' | |
| end = '2017-03-31' | |
| url = 'http://api.coindesk.com/v1/bpi/historical/close.json?start={}&end={}'.format(start, end) | |
| r = requests.get(url) | |
| with open('data/coindesk.json', 'w') as fo: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import json | |
| url = "http://www.quandl.com/api/v1/datasets/BCHAIN/MKPRU.json" | |
| r = requests.get(url) | |
| with open('data/quandl.json', 'w') as fo: | |
| json.dump(r.json(), fo) |