1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "sites": [
10 "anthropic.com",
11 "github.com",
12 ],
13 "bots": [
14 "GPTBot",
15 "OAI-SearchBot",
16 "ChatGPT-User",
17 "OAI-AdsBot",
18 "ClaudeBot",
19 "Claude-SearchBot",
20 "Claude-User",
21 "PerplexityBot",
22 "Perplexity-User",
23 "Google-Extended",
24 "Applebot-Extended",
25 "CCBot",
26 "meta-externalagent",
27 "meta-externalfetcher",
28 ],
29 "samplePaths": ["/"],
30 "maxSites": 10,
31}
32
33
34run = client.actor("kondasviktor/ai-crawler-access-checker").call(run_input=run_input)
35
36
37print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41