From d1ad8f5b4e3054b61a7a6ae920eed529c337ecdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 28 Jan 2019 13:55:26 +0100 Subject: [PATCH] Web --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ac12927..d7c4daf 100644 --- a/README.md +++ b/README.md @@ -1542,7 +1542,8 @@ def odds_handler(sport): ```python # $ pip3 install requests >>> import requests ->>> r = requests.post('http://localhost:8080/odds/soccer', data={'team': 'arsenal f.c.'}) +>>> url = 'http://localhost:8080/odds/soccer' +>>> r = requests.post(url, data={'team': 'arsenal f.c.'}) >>> r.json() ['arsenal f.c.', 2.44, 3.29] ```