1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "analysisMode": "form_matchup",
10 "format": "t20i",
11 "statType": "batting",
12 "view": "innings",
13 "team": "India",
14 "opposition": "Australia",
15 "groundId": "",
16 "groundUrl": "",
17 "playerId": "",
18 "playerUrl": "",
19 "playerIds": [],
20 "playerUrls": [],
21 "dateFrom": "",
22 "dateTo": "",
23 "homeOrAway": "",
24 "result": "",
25 "maxItems": 50,
26 "formWindow": 5,
27 "orderBy": "runs",
28 "orderDirection": "desc",
29 "minQualification": 0,
30 "proxyConfiguration": { "useApifyProxy": False },
31}
32
33
34run = client.actor("getascraper/espncricinfo-statsguru-scraper").call(run_input=run_input)
35
36
37print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41