These are chat archives for yaakov300/ForexApp

6th
May 2015
באחד הדפים שם יש קישור
oshrim
@oshrim
May 06 2015 14:07

from flask import Flask, render_template
import requests
import json
app = Flask(name)

@app.route('/')
def hello_world():
return render_template("index.html")

@app.route('/getUsers/')
def getUsers():
req = requests.get(url="http://finance.yahoo.com/webservice/v1/symbols/COALINDIA.NS/quote?format=json")
response = json.loads(req.content)
return response["list"]["resources"][0]["resource"]["fields"]["price"]

if name == 'main':
app.run()