1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "brand": "HubSpot",
12 "demoMode": true,
13 "brandAliases": [
14 "hubspot.com"
15 ],
16 "competitors": [
17 {
18 "name": "Salesforce",
19 "aliases": [
20 "salesforce.com"
21 ]
22 }
23 ],
24 "prompts": [
25 "What is the best CRM for a small business?",
26 "Which CRM should a startup use?",
27 "What are good alternatives to Salesforce for small teams?"
28 ],
29 "promptGenerator": {
30 "enabled": false,
31 "category": "",
32 "country": "",
33 "count": 5
34 },
35 "maxQueries": 3
36};
37
38
39const run = await client.actor("taiw/claude-search-scraper").call(input);
40
41
42console.log('Results from dataset');
43console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
44const { items } = await client.dataset(run.defaultDatasetId).listItems();
45items.forEach((item) => {
46 console.dir(item);
47});
48
49