1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "liveEvents",
10 "sport": "football",
11 "sports": [],
12 "statusFilter": "all",
13 "tournamentIds": [],
14 "teamIds": [],
15 "countries": [],
16 "playerIds": [],
17 "includeStatistics": True,
18 "includeIncidents": True,
19 "includeLineups": False,
20 "includeOdds": False,
21 "includeHeadToHead": False,
22 "includeVotes": False,
23 "includeBestPlayers": False,
24 "includeShotmap": False,
25 "onlyChanges": True,
26 "watch": [],
27 "includeScorers": False,
28 "maxItems": 25,
29 "proxyConfiguration": { "useApifyProxy": True },
30}
31
32
33run = client.actor("getascraper/sofascore-live-events-scraper").call(run_input=run_input)
34
35
36print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40