1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sites": [
12 "https://example.com",
13 "https://apify.com"
14 ],
15 "paths": [
16 "/"
17 ],
18 "bots": [
19 "Baiduspider",
20 "Baidubot",
21 "Bytespider",
22 "Bytedance",
23 "Doubao",
24 "DeepSeekBot",
25 "ChatGLM-Spider",
26 "Qwenbot",
27 "PanguBot",
28 "PetalBot",
29 "Kimi",
30 "Hunyuan",
31 "YiBot",
32 "SenseBot",
33 "iFlytekBot",
34 "MiniMaxBot",
35 "InternLMBot",
36 "360Spider",
37 "Sogou web spider",
38 "Yisouspider"
39 ],
40 "checkLlms": true,
41 "maxItems": 2
42};
43
44
45const run = await client.actor("zinin/chinese-ai-crawler-access-checker").call(input);
46
47
48console.log('Results from dataset');
49console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
50const { items } = await client.dataset(run.defaultDatasetId).listItems();
51items.forEach((item) => {
52 console.dir(item);
53});
54
55