1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "startUrls": [
12 {
13 "url": "https://github.com"
14 },
15 {
16 "url": "https://shopify.com"
17 }
18 ],
19 "acceptedTerms": true,
20 "legalAcknowledgment": true,
21 "targetRegion": "EU",
22 "industryType": "general",
23 "aiProvider": "none",
24 "aiApiKey": "",
25 "aiDataProcessingConsent": false,
26 "enableTechnicalAnalysis": true,
27 "performSSLCheck": true,
28 "performWhoisLookup": true,
29 "performDNSAnalysis": false,
30 "enableTechnologyDetection": true,
31 "enableAccessibilityCheck": true,
32 "enableNotifications": false,
33 "notificationType": "none",
34 "discordWebhookUrl": "",
35 "telegramBotToken": "",
36 "telegramChatId": "",
37 "slackWebhookUrl": "",
38 "emailRecipient": "",
39 "emailSendGridApiKey": "",
40 "emailFromAddress": "",
41 "concurrency": 2,
42 "maxPages": 5,
43 "lowMemoryMode": false,
44 "exportFormats": [
45 "html",
46 "csv",
47 "json"
48 ]
49};
50
51
52const run = await client.actor("actor_researcher.48/privacy-compliance-analyzer-v-1").call(input);
53
54
55console.log('Results from dataset');
56console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
57const { items } = await client.dataset(run.defaultDatasetId).listItems();
58items.forEach((item) => {
59 console.dir(item);
60});
61
62