1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "rows": [
10 {
11 "ip": "66.249.66.1",
12 "userAgent": "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",
13 },
14 {
15 "ip": "8.8.8.8",
16 "userAgent": "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",
17 },
18 {
19 "ip": "157.55.39.1",
20 "userAgent": "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)",
21 },
22 {
23 "ip": "132.196.86.10",
24 "userAgent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)",
25 },
26 {
27 "ip": "1.1.1.1",
28 "userAgent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)",
29 },
30 {
31 "ip": "216.73.216.10",
32 "userAgent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)",
33 },
34 {
35 "ip": "198.51.100.99",
36 "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/126.0 Safari/537.36",
37 },
38 ],
39 "logLines": "",
40 "logFileUrl": "",
41 "aggregateByIp": True,
42 "maxUniqueRows": 2000,
43}
44
45
46run = client.actor("that_red_bird/verify-bot-ips").call(run_input=run_input)
47
48
49print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
50for item in client.dataset(run.default_dataset_id).iterate_items():
51 print(item)
52
53