Created
August 6, 2014 08:31
-
-
Save jollychang/746fc9a965fcab27898c to your computer and use it in GitHub Desktop.
check MOLYBDENUM price
This file contains 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 | |
url = 'http://www.quandl.com/api/v1/datasets/OFDP/MOLYBDENUM_56' | |
r = requests.get(url) | |
data = r.json().get('data') | |
print data | |
if data[0][-1] > data[1][-1]: | |
print 'price is rise' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment