1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sourceMode": "sample",
12 "mode": "demo",
13 "startUrls": [
14 {
15 "url": "https://apps.fcc.gov/oetcf/eas/reports/GenericSearch.cfm",
16 "sourceId": "FCC-EAS-FCC-ID-SEARCH",
17 "userData": {
18 "sourceId": "FCC-EAS-FCC-ID-SEARCH"
19 }
20 },
21 {
22 "url": "https://www.fcc.gov/oet/ea/fccid",
23 "sourceId": "WWW-FCC-GOV",
24 "userData": {
25 "sourceId": "WWW-FCC-GOV"
26 }
27 }
28 ],
29 "maxItems": 10,
30 "lookbackDays": 3650,
31 "includeRaw": false,
32 "emitDiagnostics": true,
33 "outputMode": "sample-records"
34};
35
36
37const run = await client.actor("zentrafoundry/fcc-equipment-authorization-competitor-launch-tracker").call(input);
38
39
40console.log('Results from dataset');
41console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47