1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "format": "test",
10 "statType": "batting",
11 "view": "innings",
12 "team": "",
13 "opposition": "",
14 "ground": "",
15 "dateFrom": "",
16 "dateTo": "",
17 "homeOrAway": "",
18 "result": "",
19 "maxItems": 1000,
20 "orderBy": "runs",
21 "orderDirection": "desc",
22 "minQualification": 0,
23 "proxyConfiguration": { "useApifyProxy": False },
24}
25
26
27run = client.actor("getascraper/espncricinfo-statsguru-scraper").call(run_input=run_input)
28
29
30print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
31for item in client.dataset(run["defaultDatasetId"]).iterate_items():
32 print(item)
33
34