1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "query": "the killers",
13 "searchType": "bands",
14 "urls": [
15 "https://www.concertarchives.org/venues/red-rocks-amphitheatre--11"
16 ],
17 "dateFilter": "all",
18 "year": 0,
19 "fetchDetails": true,
20 "includeSetlists": false,
21 "maxItems": 20,
22 "maxPages": 0,
23 "incrementalMode": false,
24 "emitUnchanged": false,
25 "emitExpired": false,
26 "maxNotifyListings": 50,
27 "proxyConfiguration": {
28 "useApifyProxy": true
29 }
30};
31
32
33const run = await client.actor("abotapi/concert-archives-scraper").call(input);
34
35
36console.log('Results from dataset');
37console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43