Does anyone know how to receive user input parameters?
wishtodaya opened this issue · comments
wishtodaya commented
@app.get("/news/<string:url>")
async def get_news(url):
print(url)
return quart.Response(response=json.dumps(url), status=200)
I want to receive a URL link input from the user, how should I handle it?
j4acks0n commented
@app.get("/news/<string:url>") async def get_news(url): print(url) return quart.Response(response=json.dumps(url), status=200)
I want to receive a URL link input from the user, how should I handle it?
Ummm I'm Not Sure Yet Maybe You Can Visit This
https://towardsdatascience.com/proper-ways-to-pass-environment-variables-in-json-for-curl-post-f797d2698bf3
Hope This Will Help
Logan Kilpatrick commented
What you are doing above looks good!