change key in return json
This commit is contained in:
parent
081b161ca2
commit
778366b30c
@ -25,4 +25,4 @@ def get_data():
|
|||||||
def scrapp():
|
def scrapp():
|
||||||
url = request.get_json()
|
url = request.get_json()
|
||||||
comments = scrapp_comments(url['link'])
|
comments = scrapp_comments(url['link'])
|
||||||
return jsonify({'comments':comments})
|
return jsonify({'sentences':comments})
|
Loading…
Reference in New Issue
Block a user