1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "challenges",
10 "challengeSports": [
11 "promoted",
12 "run",
13 "ride",
14 "swim",
15 "walk",
16 "hike",
17 "workout",
18 ],
19 "links": [
20 "https://www.strava.com/clubs/23629",
21 "https://www.strava.com/clubs/ambleside-ac",
22 "23629",
23 "ambleside-ac",
24 "https://www.strava.com/athletes/2619603",
25 ],
26 "discoverCount": 20,
27 "discoverOffset": 0,
28 "maxItems": 20,
29 "proxyConfiguration": {
30 "useApifyProxy": True,
31 "apifyProxyGroups": ["RESIDENTIAL"],
32 },
33 "maxNotifyListings": 50,
34}
35
36
37run = client.actor("abotapi/strava-public-data-scraper").call(run_input=run_input)
38
39
40print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
41for item in client.dataset(run.default_dataset_id).iterate_items():
42 print(item)
43
44