1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "repositories": [
10 "github.com/kubernetes/kubernetes",
11 "github.com/nodejs/node",
12 "github.com/golang/go",
13 "github.com/prometheus/prometheus",
14 "github.com/elastic/elasticsearch",
15 "github.com/hashicorp/terraform",
16 "github.com/ansible/ansible",
17 "github.com/rust-lang/rust",
18 ],
19 "repositoryList": """github.com/kubernetes/kubernetes
20github.com/nodejs/node""",
21 "maxRepositories": 8,
22 "failBelowScore": 5,
23 "includeRawDetails": False,
24 "requestTimeoutSecs": 30,
25}
26
27
28run = client.actor("automation-lab/openssf-scorecard-projects-scraper").call(run_input=run_input)
29
30
31print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
32for item in client.dataset(run["defaultDatasetId"]).iterate_items():
33 print(item)
34
35