1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "urls": [
10 "https://example.com/",
11 "https://www.iana.org/",
12 ],
13 "ownershipConfirmed": True,
14 "scanBundles": True,
15 "maxBundleBytes": 2000000,
16 "maxScriptsPerPage": 10,
17 "probePaths": [
18 "/.env",
19 "/.env.local",
20 "/.git/config",
21 "/actuator/env",
22 "/debug/vars",
23 "/swagger.json",
24 "/openapi.json",
25 "/api-docs",
26 "/swagger-ui.html",
27 "/graphql",
28 "/graphiql",
29 "/server-status",
30 ],
31 "failOn": "high",
32 "timeoutSeconds": 15,
33 "maxRequests": 400,
34 "maxRedirects": 2,
35 "trackBaseline": False,
36 "baselineKey": "baseline",
37}
38
39
40run = client.actor("kingii98/deployed-frontend-secret-and-debug-endpoint-exposure-gate").call(run_input=run_input)
41
42
43print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
44for item in client.dataset(run.default_dataset_id).iterate_items():
45 print(item)
46
47