We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aae766e commit 16b42aaCopy full SHA for 16b42aa
Cricket_Notification/cricket_notification.py
@@ -4,21 +4,14 @@
4
5
url = "http://cricapi.com/api/matches?apikey=D18haZnedRZ3QijAQEJJV97U5r23"
6
r = requests.get(url)
7
-print(r)
8
-print(r.text)
9
-
10
data = json.loads(r.text)
11
-print(data)
12
-print(data['matches'][0])
13
-print (data['matches'][0]['team-1'])
14
15
id=""
16
for item in data['matches']:
17
if (item['team-1']=="India" or item["team-2"]=="India"):
18
print(item)
19
if item["matchStarted"]:
20
id=item["unique_id"]
21
-print(id)
22
23
if id:
24
r = requests.get("http://cricapi.com/api/cricketScore?apikey=D18haZnedRZ3QijAQEJJV97U5r23&unique_id="+str(id))
0 commit comments