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 "https://www.concertarchives.org/venues/red-rocks-amphitheatre--11?page=2",
17 "https://www.concertarchives.org/venues/red-rocks-amphitheatre--11?year=2019&date=past",
18 "https://www.concertarchives.org/bands/the-killers",
19 "https://www.concertarchives.org/locations/singapore-singapore",
20 "https://www.concertarchives.org/search?q=the%20killers&search_for=Bands",
21 "https://www.concertarchives.org/concert-search-engine?bands_query[]=the+killers&search=true",
22 "https://www.concertarchives.org/concerts/disclosure--6347104",
23 "https://concertarchives.org/bands/hozier",
24 "https://www.concertarchives.org/venues/red-rocks-amphitheatre--11?date=upcoming"
25 ],
26 "dateFilter": "all",
27 "year": 0,
28 "fetchDetails": true,
29 "includeSetlists": false,
30 "maxItems": 20,
31 "maxPages": 0,
32 "proxyConfiguration": {
33 "useApifyProxy": true
34 },
35 "incrementalMode": false,
36 "emitUnchanged": false,
37 "emitExpired": false,
38 "ignoreFieldsForChanges": [],
39 "maxNotifyListings": 50
40};
41
42
43const run = await client.actor("abotapi/concert-archives-scraper").call(input);
44
45
46console.log('Results from dataset');
47console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
48const { items } = await client.dataset(run.defaultDatasetId).listItems();
49items.forEach((item) => {
50 console.dir(item);
51});
52
53