1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "origin": "https://example.com/",
10 "ownershipAttested": False,
11 "pathList": [
12 "README.md",
13 "package.json",
14 ".github/workflows/deploy.yml",
15 ],
16 "publishDir": "dist/",
17 "allowPublicPaths": [
18 "CNAME",
19 ".nojekyll",
20 ],
21 "maxPaths": 2000,
22}
23
24
25run = client.actor("kingii98/repository-tree-publication-leak-gate-for-static-hosts").call(run_input=run_input)
26
27
28print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
29for item in client.dataset(run.default_dataset_id).iterate_items():
30 print(item)
31
32