Skip to content

Instantly share code, notes, and snippets.

@jollychang
Created August 6, 2014 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jollychang/746fc9a965fcab27898c to your computer and use it in GitHub Desktop.
Save jollychang/746fc9a965fcab27898c to your computer and use it in GitHub Desktop.
check MOLYBDENUM price
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