Skip to content

Commit 16b42aa

Browse files
committed
Further removing unnecessary prints
1 parent aae766e commit 16b42aa

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Cricket_Notification/cricket_notification.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,14 @@
44

55
url = "http://cricapi.com/api/matches?apikey=D18haZnedRZ3QijAQEJJV97U5r23"
66
r = requests.get(url)
7-
print(r)
8-
print(r.text)
9-
107
data = json.loads(r.text)
11-
print(data)
12-
print(data['matches'][0])
13-
print (data['matches'][0]['team-1'])
148

159
id=""
1610
for item in data['matches']:
1711
if (item['team-1']=="India" or item["team-2"]=="India"):
1812
print(item)
1913
if item["matchStarted"]:
2014
id=item["unique_id"]
21-
print(id)
2215

2316
if id:
2417
r = requests.get("http://cricapi.com/api/cricketScore?apikey=D18haZnedRZ3QijAQEJJV97U5r23&unique_id="+str(id))

0 commit comments

Comments
 (0)