1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "providers": [
10 "github",
11 "stripe",
12 ],
13 "allowlist": {
14 "github": [
15 "192.30.252.0/22",
16 "185.199.108.0/22",
17 "140.82.112.0/20",
18 "143.55.64.0/20",
19 "2a0a:a440::/29",
20 "2606:50c0::/32",
21 ],
22 "stripe": [
23 "3.18.12.63/32",
24 "3.69.109.8/32",
25 "3.120.168.93/32",
26 "3.130.192.231/32",
27 "13.235.14.237/32",
28 "13.235.122.149/32",
29 "18.211.135.69/32",
30 "35.154.171.200/32",
31 "35.157.207.129/32",
32 "52.15.183.38/32",
33 "54.88.130.119/32",
34 "54.88.130.237/32",
35 "54.187.174.169/32",
36 "54.187.205.235/32",
37 "54.187.216.72/32",
38 ],
39 },
40 "alert_webhook_url": "",
41 "baseline_key": "DEFAULT",
42}
43
44
45run = client.actor("kingii98/webhook-sender-ip-range-drift-and-allowlist-gap-report").call(run_input=run_input)
46
47
48print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
49for item in client.dataset(run.default_dataset_id).iterate_items():
50 print(item)
51
52