1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "query": "the killers",
11 "searchType": "events",
12 "urls": [
13 "https://www.songkick.com/metro-areas/4120-us-atlanta",
14 "https://www.songkick.com/metro-areas/4120-us-atlanta?page=2",
15 "https://www.songkick.com/metro-areas/4120-us-atlanta/gigography",
16 "https://www.songkick.com/metro-areas/4120",
17 "https://www.songkick.com/en/metro-areas/4120-us-atlanta",
18 "https://www.songkick.com/artists/10158736-bella-poarch",
19 "https://www.songkick.com/artists/10158736",
20 "https://www.songkick.com/artists/10158736-bella-poarch/calendar",
21 "https://www.songkick.com/artists/10158736-bella-poarch/gigography",
22 "https://www.songkick.com/venues/10960-georgia-theatre",
23 "https://www.songkick.com/venues/10960-georgia-theatre?page=2",
24 "https://www.songkick.com/venues/10960-georgia-theatre/calendar",
25 "https://www.songkick.com/venues/10960-georgia-theatre/gigography",
26 "https://www.songkick.com/concerts/43055252-breaking-benjamin-at-ameris-bank-amphitheatre",
27 "https://www.songkick.com/concerts/43055252",
28 "https://www.songkick.com/festivals/3760879-gaelic-storm",
29 "https://www.songkick.com/festivals/3760879-gaelic-storm/id/43437118-gaelic-storm-2026",
30 "https://www.songkick.com/festivals/3760879-gaelic-storm/id/43437118",
31 "https://www.songkick.com/search?query=the+killers&type=events",
32 "https://www.songkick.com/search?query=the+killers&type=past_events&page=2",
33 "https://www.songkick.com/search?query=beyonce&type=artists",
34 "https://www.songkick.com/search?query=mercedes&type=venues",
35 "https://www.songkick.com/search?query=atlanta&type=cities",
36 ],
37 "fetchDetails": True,
38 "maxItems": 20,
39 "maxPages": 0,
40 "proxyConfiguration": { "useApifyProxy": True },
41 "incrementalMode": False,
42 "emitUnchanged": False,
43 "emitExpired": False,
44 "ignoreFieldsForChanges": [],
45 "maxNotifyListings": 50,
46}
47
48
49run = client.actor("abotapi/songkick-concert-calendar-scraper").call(run_input=run_input)
50
51
52print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
53for item in client.dataset(run.default_dataset_id).iterate_items():
54 print(item)
55
56