Code

Code

flask url open basic format

import urllib

@app.route('/events.json')
def events():
    result = urllib.urlopen([URL]).read()
    return json.load(result)