Skip to content

Instantly share code, notes, and snippets.

@ryonagana ryonagana/request
Created Apr 14, 2019

What would you like to do?
from flask import Flask
import json
import urllib.request
app = Flask(__name__)
def hello_world():
r = urllib.request.urlopen('')
response_text =
return app.response_class(
mimetype='application/json; charset=UTF-8'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.