1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "manifests": [
10 {
11 "name": "web/package.json",
12 "type": "package.json",
13 "content": """{
14 \"name\": \"demo-web\",
15 \"dependencies\": {
16 \"express\": \"^4.18.2\",
17 \"request\": \"^2.88.2\",
18 \"left-pad\": \"^1.3.0\"
19 }
20}
21""",
22 },
23 {
24 "name": "api/requirements.txt",
25 "type": "requirements.txt",
26 "content": """requests==2.31.0
27django>=4.2
28""",
29 },
30 {
31 "name": "gateway/go.mod",
32 "type": "go.mod",
33 "content": """module example.com/demo
34
35go 1.21
36
37require (
38\tgithub.com/gorilla/mux v1.8.1
39\tgithub.com/sirupsen/logrus v1.9.3
40)
41""",
42 },
43 {
44 "name": "worker/Cargo.toml",
45 "type": "Cargo.toml",
46 "content": """[package]
47name = \"demo-worker\"
48version = \"0.1.0\"
49
50[dependencies]
51serde = \"1.0\"
52rand = \"0.8\"
53""",
54 },
55 ],
56 "licensePolicy": [
57 "GPL-3.0-only",
58 "AGPL-3.0-only",
59 ],
60 "abandonmentDays": 730,
61 "includeTransitive": False,
62 "failOnDeprecated": True,
63 "failOnAbandoned": False,
64 "failOnUnknownLicense": False,
65 "baselineKey": "",
66}
67
68
69run = client.actor("kingii98/polyglot-manifest-license-and-end-of-life-gate").call(run_input=run_input)
70
71
72print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
73for item in client.dataset(run.default_dataset_id).iterate_items():
74 print(item)
75
76